BAE Systems interview question

How do you implement IoC pattern