Axtria interview question

How to remove duplicate records from list, dataframe?