Capgemini Interview Question

How to inject dependency into program.