Suppose that I have 2 nested for loops, and 1 array of size N as shown in my code below:
int result = 0; for( int i = 0; i < N ; i++) { for( int j = i