Implement the function findRoots to find the roots of the quadratic equation: ax2 + bx + c = 0. If the equation has only one solution, the function should return that solution as both elements of the pair. The equation will always have at least one solution.
The roots of the quadratic equation can be found with the following formula:
For example, the roots of the equation 2x2 + 10x + 8 = 0 are -1 and -4.
- Simple case: Exception
- Equal roots: Exception
- Distinct roots: Exception