MathCo interview question

basic sql questions