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?