BNP Paribas interview question

collections, aggregations, solid principles in java