QualEx Systems interview question

Palindrome in Python