Infosys interview question

Oops concept, collection, exception handling