Infosys Interview Question

Collections, multi threading, oops