Add palindrome check solution.