Leetcode Check Palindrome Using Javascript To Create