HCL interview question

oops concept, collection, array