ZS Associates Interview Question

About internship,SQL, puzzles ,how I solved case study