ZS Associates interview question

How did you solve all the problems? Tell me the approach.