Zhenyang Dai's submission of Zombinatorial | CodeChef