input: Write a python function to find the roots of a quadratic equation using the quadratic formula.
  assert findRoots(1, -7, 10) == (5.0, 2.0)
  assert findRoots(1, -3, 2) == (2.0, 1.0)
  assert findRoots(1, 2, 1) == (-1.0, -1.0)
  assert findRoots(1, 0, 1) == (None, None)
output: import cmath
  
  def findRoots(a, b, c):
      # Calculate the discriminant
      d = b**2 - 4*a*c
      
      if d > 0:
          root1 = (-b + cmath.sqrt(d).real) / (2 * a)
          root2 = (-b - cmath.sqrt(d).real) / (2 * a)
          return (max(root1, root2), min(root1, root2))
      elif d == 0:
          root = -b / (2 * a)
          return (root, root)
      else:
          return (None, None)