7. Reverse Integer - LeetCode Solution in Python