Question d’entretien chez Yelp

Write a function which will determine if a given string is palindrome or not. bool ispalindrome(string input); I was able to complete the problem and even the interviewer seemed satisfied with the solution. Test Cases: "racecar" => true "!!a!" => true "abc" => false "a" => true "A Man, A Plan, A Canal – Panama!" => true