Leetcode Check Palindrome Using Javascript Responsive Menu