Nikolay Domashenko's submission of Subarray permutations | CodeChef