problem:- https://www.hackerearth.com/practice/data-structures/advanced-data-structures/segment-trees/practice-problems/algorithm/shooting-range/description/ can anybody help me understand the code given in the editorial? i am not able to understand the logic used in this problem..