Need help!
how to do this problem with segment tree data structure. https://www.codechef.com/SEPT17/problems/SEACO