Cognizant interview question

how spring ioc works