IBM interview question

program to find duplicates in list using java 8?