put $"X" $ or $"O"$ in the cells. If the first player can put three consecutive $X's$ in a row, column or
diagonal then he wins. Same goes for the second player, only he needs to put $O's $. Given a
configuration of tic-tac-toe board, you are playing with $"X"$. Find if you can win by giving a
single move in the current board. It is guaranteed that the board is not yet won by anybody.
It is also guaranteed that, the board is a valid game position.
First line contains $T (T < 2500)$, number of cases. Then three lines for each case. Each line
will contain three characters. These characters can be: $"X" $ (Your move), $"O" $ (Opponent
move) or $"." $(Empty cell). These three lines denote a board position.
For each test case, print the test case number starting from $1$ and $"YES"$, if you can win by
giving a single move, $"NO"$, otherwise.