Design Interactive Interview Question

Explain middleware.