Axtria Interview Question

How to remove duplicate records from list, dataframe?