How piyush escaped the park if there is a '#' in last row?

Acc. to question if there is ‘#’ symbol piyush can not move forward so how he get to the last point in matrix?

Deepanshu when there is a # it will not move futhur it will switch it’s row to next row and if there is no next row then he will escape.