EY Interview Question

SQL question related to 'having' clause.