Tech Mahindra Interview Question

Find duplicate elements in an array using Streams