

1. In each row, integers are sorted from left to right.
2. Each row's first integer is greater than the previous row's last integer.
Input:
'MATRIX' = [ [1, 3, 5, 7], [10, 11, 16, 20], [23, 30, 34, 60] ], 'TARGET' = 3
Output:1
Explanation: Since the given number ‘TARGET’ is present in the matrix, we return true.
The first line of the input will contain two integers denoting the dimensions of the matrix ‘N’ and ‘M’.
The following 'N' lines contain ‘M’ integers.
The next line contains an integer ‘TARGET’.
The only line contains 1 if 'TARGET' is present otherwise, 0.
You don’t need to print anything. Just implement the given function.
Sorted Doubly Linked List to Balanced BST
Largest Plus Sign
Minimum Operations to Form Letter Y
Matrix Block Sum
Minimized Maximum of Products Distributed to Any Store