Virtusa interview question

How does DI work in .net core