how to reverse the order of a number