J.P. Morgan interview question

use of dependency injection in java