input: Write a python function to check if a player has won in a tic-tac-toe game.
  assert checkWin(['-', '-', '-', '-', '-', '-', '-', '-', '-', '-'], 'X') == False
  assert checkWin(['-', '-', '-', '-', 'X', 'X', 'X', '-', '-', '-'], 'X') == True
  assert checkWin(['-', 'O', '-', '-', 'O', '-', '-', 'O', '-', '-'], 'O') == True
  assert checkWin(['-', '-', '-', '-', '-', '-', '-', '-', '-', '-'], 'O') == False
  assert checkWin(['-', 'X', 'X', 'X', '-', '-', '-', '-', '-', '-'], 'X') == True
output: def checkWin(board, player):
      # Winning combinations
      win_combinations = [
          [1, 2, 3], [4, 5, 6], [7, 8, 9], # Horizontal
          [1, 4, 7], [2, 5, 8], [3, 6, 9], # Vertical
          [1, 5, 9], [3, 5, 7]             # Diagonal
      ]
      
      # Check each winning combination
      for combo in win_combinations:
          if all(board[pos] == player for pos in combo):
              return True
      return False