Leetcode Check Palindrome Javascript Programmers