ZS Associates Interview Question

Puzzles, SQL, guess estimates, basic dsa