Agilysys Interview Question

java program to eliminate the duplicate