Guys this is one of the most asked problems in company interviews, previously it was asked by Flipkart, PayPal and many more.
So let's start with the problem.
In this problem, you will be given one matrix,let's say the matrix is
{{ 1, 2, 3, 4}
{ 5, ...