Basically, I\'m trying to solve this Leetcode problem about detecting palindromes (numbers that can be read the same back and forth,) but it seems that my program detects -1