Toast Inc interview question

I needed to code a function that determines if a string is a palindrome. He asked about the space and time complexity. Then he asked a series of questions about API's and scaling API's.