using System.Collections.Generic;
public static List<long> rangeSum(List<int> A, List<List<int>> B)
Console.WriteLine("START.....");
List<long> pf = new List<long>(new long[n]);
Console.WriteLine("START....." + A[0]);
Console.WriteLine("START....." + pf.Count);
for (int i = 1; i < n; i++)
Console.WriteLine("i :" + i);
pf[i] = pf[i - 1] + A[i];
List<long> rangeSumAns = new List<long>(new long[B.Count]);
for (int j = 0; j < B.Count; j++)
Console.WriteLine("j :" + j);
Console.WriteLine("start :" + start + " end: " + end);
rangeSumAns[j] = pf[end];
rangeSumAns[j] = pf[end] - pf[start];
public static void Main()
Console.WriteLine("Hello World");
var query = new List<List<int>>
var ans = Solution.rangeSum(arr, query);
Console.WriteLine("Ans: " + ans);