Bloomberg interview question

reverse digits of an integer