EY Interview Question

Sql queries , basic python