Cognizant interview question

Java 8 program to remove duplicates