EY interview question

Sql queries Python coding qes