ClickSoftware interview question

reverse an integer without converting to a string