Editorial solution is too verbose


#1

I don’t think the current editorial solution looks readible. Consider this instead:
Sorted Permutation Rank