ZS Associates Interview Question

They asked several puzzles