Gennady Korotkevich's submission of Partition Ways | CodeChef