MathCo Interview Question

basic sql questions