Cubic Interview Question

What’s an API and how does it work.