Range Sum Query Codeforces Solution