Valid Palindrome Leetcode Using Recursion In Javascript