Matrix search for sorted array

unable to identify the error

here is your corrected code

please mark your code as resolved and rate as well :slight_smile: