tried to do recursivePalindrome