Walmart Global Tech interview question

Detailed discussion on dependency injection.