Capgemini interview question

Whats dependency injection, quick algorithm implementation