Hi, my code works fine with first array examples, but not with last array that has negative numbers. Could you help me to find a solution. I would like to find a work around with my current code, and not by using, forEach or .map or maht.max methods. Thank you in advance.

Here is my code:

```
function largestOfFour(arr) {
let arrOfBigNum = [];
// You can do this!
for(let i = 0; i<arr.length; i++) {
let prevArrItemVal = 0;
let currentArrItemVal = 0;
for(let j = 0; j<arr[i].length; j++) {
currentArrItemVal = arr[i][j];
if(currentArrItemVal > prevArrItemVal) {
prevArrItemVal = currentArrItemVal;
}
}
arrOfBigNum.push(prevArrItemVal);
}
return arrOfBigNum;
}
largestOfFour([[17, 23, 25, 12], [25, 7, 34, 48], [4, -10, 18, 21], [-72, -3, -17, -10]]);
```