PwC Interview Question

Optimized code for checking a string palindrome (any language)