ZS Associates Interview Question

About DBMS, SQL, Puzzles from GFG