Devesh Agarwal's submission of And-Or Game | CodeChef