JS Interview Prep: Palindrome