Check Palindrome In Python Using Recursion In Javascript