Apple interview question

Palindrome String leet code easy