Hi all,
The August Easy challenge on HackerEarth is over. I could not solve the following problem: https://www.hackerearth.com/problem/algorithm/count-the-permutations-2-365a19e4/description/
The editorial after the contest on HackerEarth as always is not helpful at all. Hoping Leetcode community will help solve the problem :)