wrote recursivePalindrome and commented