Pergunta de entrevista da empresa Cognizant

Write a program to find the reverse of a number.