Quest Global interview question

find the duplicates in arraylist using java 8