input: Write a python function to reverse an integer.
  assert reverse_int(123) == 321
  assert reverse_int(100) == 1
  assert reverse_int(789) == 987
output: def reverse_int(n):
      reversed_n = int(str(n)[::-1])
      return reversed_n