Hey, so firstly, well done on your solution, you’re almost there. Your issue seems to be that you are confusing variable name ie, result on line 6 in your if statement condition is an empty array, you want to change that to arr, val on line 7 within your if statement is supposed to be arr as well, and you want to return something other than the non existent val, I’ll let you deduce what you should return for the solution to work.
A few other tips for you: its best practice to not use capital letters at the start of your variable names, rather use ‘camelCase’, also try to pay a touch more attention to detail with the spaces you use, ie: arr [n][0] should look like arr[n][0] and try to keep the spaces when declaring your loops consistent. This will improve readability in your code and keep the OCD coders at bay.
Well, that all from me, good luck and keep coding, you’re getting there!
You’ve got a space between arr and [: this causes the entire program to go into an infinite loop when I test it. You need to be a bit more careful typing, as stuff like this will cause very strange errors if it doesn’t error out immediately.
if (result[n][sb] > Large ){
This is not correct. You should be checking whether arr[n][sb] is greater than the current value of Large, you don’t care about result at this point. And as it is going to be an array with four numbers in, result[n][sb] doesn’t make sense.
Large = val[n][sb];
Again, not correct, I think you’ve copied something here. val is not a thing that exists in your program: you are using the variable arr for the array.