Gennady Korotkevich's submission of Matrix Permutations | CodeChef