Naive solution to find palindrome