input: Write a python function to reverse an integer.
  assert reverseInteger(2435) == 5342
  assert reverseInteger(123456) == 654321
  assert reverseInteger(1000) == 1
output: def reverseInteger(n):
      reversed_n = int(str(n)[::-1])
      return reversed_n