Solution for Problem #37
Checking palindromes recursively