Refer the following 2D array to answer this question:
int[][] list = {{4,7,5},
{2,6,5},
{1,1,3}};
public static int method5(int [][] list){
int sum=0;
for(int r=0; r
{
for(int c=0; c<=r; c++)
{
sum+=list[r][c];
}
}
return sum;
}
What is the output of the method5?