I was solving [Labyrinth](https://cses.fi/problemset/result/9051629/#test3) from cses. My submission was [Submission](https://cses.fi/paste/e02cc785c0f319398a1ded/), I got a wrong answer on this submssion, but I think this solution works. Please Tell me what is wrong in my solution.