IBM interview question

They asked easy leetcode questions. Palindrome.