ZS Associates interview question

they asked me many puzzles