LinkedIn interview question

Palindrome in JS Coding Question & Time Complexity