UBS Interview Question

basic SQL question