Likewise Interview Question

Write a function to remove duplicates from a sequence.