adding my solution to the palindrome problem

Here is my solution.