Salesforce interview question

Develop a simplistic dependency management system in python