10bis Interview Question

two SQL question on cocodility platfrom