PathAI Interview Question

Palindrome string