Leetcode Check Palindrome Using Javascript With Jsp