How to solve ZCO 2018 questions

Can someone please tell me what is the strategy to solve ZCO 2018 questions.

Question paper: https://www.iarcs.org.in/inoi/2018/zco2018/zco2018-question-paper.pdf

It will be helpful if you provide a working code.

Thanks and regards.