Wayfair Interview Question

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