input: Write a python function to print the digits of a given integer in reverse order.
  assert reverse_digits(12345) == 54321
  assert reverse_digits(1002) == 2001
  assert reverse_digits(987654321) == 123456789
output: def reverse_digits(n):
      return int(str(n)[::-1])