Infosys interview question

Collections , exception handling