SlashNext interview question

Remove the duplicates from python list in O(n) times.