Google Interview Question

Describe a function that would remove duplicate lines in a text file.