ZS Associates Interview Question

Some puzzles were asked in behavioral round