Problem: 2040C - Ordered Permutations
My Submission: 295743692
A solution to the C problem of contest 992, I was really glad to finally manage to solve it (though after the contest)....so much so that I'm sharing this. Do feel free to share your views and feedback.