CKISSHUG
I read the editorial of this problem and I cannot understand how they arrived at the recurrence relation. Can someone explain me in simple words. Thanks in a