EY interview question

MySql Queries