Wayfair interview question

simple SQL query using inner join and having clause with group by