Guys wanna point out where i am making mistake !. All the conditions got matched except the last one i can’t figure out a way to find the largest number among negative numbers.please check my code.help me with this.

Here’s my code for this algo :

```
function largestOfFour(arr) {
let newArr=[];
for(let i=0;i<arr.length;i++){
let flag=0;
for(let j=0;j<arr[i].length;j++){
if(arr[i][j]>flag){
flag=arr[i][j];
}
}
newArr.push(flag);
}
return newArr;
}
```

**Link to the challenge:**