Question d’entretien chez Amazon

Write a Java program to reverse a number