Cognizant Interview Question

Java 8 program to remove duplicates