I am unable to solve please give solution for this

Please use concepts taught till now in the solution. we have just been taught functions, loops and arrays , 2d arrays

hi @akshat1409 check this ive commented do the dry run of the given matrix i commented below in the code for better understanding