UBS Interview Question

Nested SQL Query