Google Cloud interview question

implement code to check if a string is palindrom