HackerEarth Easy Strong Permutation problem solution - TheCScience