Solvative interview question

middlewares