Fidelity Investments Interview Question

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