Question is to reach the lowest row


#1

The question is to reach the lowest row of the matrix. If we can reach the lowest row of the matrix, according to giving condition, then the path exists, otherwise not.
So, in this test-case, we can go from 92 -> 100 but 100 is not present in the last row and there is no other way to reach the last row so ans is -1.