Capital One interview question

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