What is wrong with the code?
class Solution(object): def reverse(self, x): """ :type x: int :rtype: int """ rev_check=0 i=int(x) while i>0: rev_check=(rev_check*10)+(i%10) i=i//10 return rev_check