Cerebral (CA) Interview Question

An easy level palindrome leetcode question