S&P Global interview question

Classic computer science interview questions, asking you to write code, explain resume, time complexity of code solutions, etc. What's the difference between an interface and API?