Altimetrik interview question

Streams API collection.counting() Remove distinct one