Postgresql Find Duplicate Rows Mysql Interview Question