input: Write a python function to find the first digit of a number.
  assert firstDigit(2458) == 2
  assert firstDigit(9876) == 9
  assert firstDigit(12345) == 1
output: def firstDigit(n):
      while n >= 10:
          n //= 10
      return n