Uploading solution to palindrome problem