Ruby - accept input of integers and reverse the digits without converting to string or using an array.