Palindrome In Javascript Leetcode Questions