Mindera interview question

Implement a method to check if a string is a palindrome