Ecom Express interview question

Code for palindrome string Using 2 pointer method