J.P. Morgan Interview Question

use of dependency injection in java