Infosys Interview Question

What is dependency injection and how to implement it.