J.P. Morgan Interview Question

Various questions on collections in java