BMW Group interview question

Write a simple dependency resolver container