Question d’entretien chez Capital One

Write a java program to remove the duplicates from the sorted list