Pregunta de entrevista de Apple

What is a API and how does it work?