Fidelity Investments interview question

How would you go about implementing a mini IOC container similar in functionality to Spring container?