Hello I solved a problem on the page that is https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-algorithm-scripting/return-largest-numbers-in-arrays

Even If My solution works correctly but freeCodeCamp compiler says your solution is wrong.

Here my code below

```
function largestOfFour(arr) {
var subMax = 0;
var max = 0;
var maxArrIndex = 0;
for(let i = 0; i < arr.length; i++){
for(let j = 0; j < arr[i].length; j++){
if(arr[i][j] > subMax){
subMax = arr[i][j];
}
}
if(subMax > max){
max = subMax;
maxArrIndex = i;
}
}
return arr[maxArrIndex];
}
largestOfFour([[17, 23, 25, 12], [25, 7, 34, 48], [4, -10, 18, 21], [-72, -3, -17, -10]]);
```