Kestra Financial Interview Question

Check if string is a palindrome in a most efficient way