https://medium.com/@AlexanderObregon/solving-the-palindrome-number-on-leetcode-erlang-solutions-walkthrough-6a62cf0a08b0