Quest Global Interview Question

find the duplicates in arraylist using java 8