LeetCode: atoi, reverse integer, zigzag conversion, longest palindrome substring