American Express interview question

Collections, streams, average of collection using java stream api