Solve D. Serega and Fun using Treap
hi , anyone have any idea about how to solve D. Serega and Fun using treap ?
thanks for any help