Valid Palindrome Leetcode Javascript Questions