Infosys interview question

What is dependency injection and how to implement it.