Peter Clark's submission of Partition the Graph | CodeChef