Amadeus Interview Question

Code in a basic text editor how to remove duplicates from an ordered list.