GlobalLogic interview question

diff bw IOC and DI