Bentley Systems Interview Question

check if a string is a palindrome