Morgan Stanley interview question

Various questions based on Java Collections