
Corresponding to the given matrix:-

From (0,0) coordinate robot cannot move to (0,1)
coordinate since there is obstacle on it.
So to reach (2,2) The path is (0,0) then to (1,0) then to
(2,0) then to (2,1) and finally (2,2).
The first line of input contains an integer ‘T’ denoting the number of test cases.
The first line of each test case contains three single-spaced integers N,x,y representing the length and width of the matrix and the coordinates of the delivery location.
The next N line contains N Single-spaced elements (0 or 1 or 5).
For each test case, return true if there is a path from (0,0) to the (x,y), otherwise, return false.
Output for each query is printed in a separate line.
1 <= 'T' <= 10
1 <= 'n' <= 100
matrix[ i ][ j ] = {0,1,5}
where 'T' denotes the number of test cases, 'n' denotes the length and width of the matrix, and matrix[i][j] denotes the values at the ith row and jth column.
Time Limit: 1 sec
The main idea is to use Breadth First Search traversal from (0,0) coordinate.If we reach the given coordinate return true. Else return false.
Algorithm: