Pergunta de entrevista da empresa J.P. Morgan

Given an integer, print the integer with the order of digits reversed.