ZS Associates Interview Question

Puzzles from gfg top 10