Vaadin interview question

Explain how to reverse a number in Java