Likewise interview question

Write a function to remove duplicates from a sequence.