Find String in grid || Why test case 9 is failing while it is working for same custom test

https://discuss.geeksforgeeks.org/comment/20f45b155034dbbf282c63a042f2a160

Problem link: https://practice.geeksforgeeks.org/problems/find-the-string-in-grid0111/1#