Infosys interview question

Program reverse integer