aQb Solutions Interview Question

How to remove duplicate rows from the table?