Connect Four - Can Play Win
Examples
Example 1:
Input: board = [["a","a","a","."],[".",".",".","."]], x = 0, y = 3, player = "a"
Output: true
Explanation:
Example 2:
Input: board = [["a","b",".","."],["b","a",".","."],[".",".",".","."],[".",".",".","."]], x = 2, y = 2, player = "a"
Output: false