TechHive interview question

Explain what's a middleware in nodejs