codechef puzzle code is petersen