Frage im Vorstellungsgespräch bei Capital One

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