Leetcode Check Palindrome Using Javascript With Django Rest