aQb Solutions interview question

How to remove duplicate rows from the table?