@smilly123-m3m

Great explanation ❤. Prefix sum part is superb 🔥 
By the way j is from i to n-1.