DataToBiz interview question

Middleware in node js and how to implement it