shivam duggal's submission of Snakes and Graph | CodeChef