Ming-Tian Yang's submission of Matchable Permutations | CodeChef