input: Write a function to simulate a Hangman game.
  assert hangman_game(["a", "p", "l", "e"]) == "You won! The word was apple"
  assert hangman_game(["b", "a", "n", "a", "a"]) == "You won! The word was banana"
  assert hangman_game(["o", "r", "n", "a", "g", "e"]) == "You won! The word was orange"
  assert hangman_game(["x", "y", "z", "w", "v", "u"]) == "Game over! The word was apple"
output: def hangman_game(guesses):
      word = 'apple'
      correct_guesses = set()
      for guess in guesses:
          if guess in word:
              correct_guesses.add(guess)
          if all(letter in correct_guesses for letter in word):
              return f"You won! The word was {word}"
      return f"Game over! The word was {word}"