Capgemini Interview Question

Whats dependency injection, quick algorithm implementation