got integer reverse method to reverse