Rakuten interview question

String manipulation. palindrome