Leetcode Check If Number Is Palindrome Or Not In Java