X interview question

Explain what is an API.