https://medium.com/@zeesek/100-days-of-leetcode-problems-in-typescript-palindrome-number-problem-7838d4dc8db1