Why the output is Yes for the sample input ?
We have encountered a ‘#’ in 2nd column of 4th row which means we can’t traverse further in 4th row. And since 4th row is last row we are unable to reach the end point .
Piyush and Magical Park
Hi @vaishnavtannu
Here reaching the end point means either we reach the last cell of matrix or we encounter a # in last row which means we are out of the matrix.