problem understanding editorial
can someone please give detailed editorial for this problem http://www.codechef.com/problems/COUNTREL thanks in advance