When I run locally.

for this same input 1534236469 I am getting 0 but when its run on leetCode it says its getting output as 9646324351

```
def reverse(self, x):
max = 2147483647
k=[]
val = 0
reminder = mod = abs(x)
while(mod >= 1 or reminder >= 1):
mod = reminder % 10
reminder = int(reminder / 10)
if(mod != reminder):
k.append(mod)
val = ''.join(str(i) for i in k)
if(x < 0):
val = "-"+str(val)
if(val == ''):
val = 0
m = int(val)
if(m > max):
print(int(0))
else:
print(m)
return m
```