Capgemini interview question

Related to .NET Core Middleware, Dependency Injection