LTM Limited interview question

Keep only distinct records in a table