MARBLEGF solution using segment tree SOLVED FINALLY!

SOLUTION :slight_smile:
https://www.codechef.com/viewsolution/39080343

PROBLEM CODE : https://www.codechef.com/problems/MARBLEGF

USE LONG LONG INT BECAUSE WHILE DEALING WITH BIG NO , THE SUM MAY BE MORE THAN 10^9

HAPPY CODING
SEGMENT TREE IS BETTER THAN FENWICK FORSURE !!