Genpact Interview Question

was asked to write programs related to collection framework