EY Interview Question

Some coding tests on sql