Faraday Future Interview Question

input a string and check if that is a valid palindrome