Wrong answer from bad logic, but palindrome checking is functional