Genpact interview question

was asked to write programs related to collection framework