Reverse int number with do-while block.