input: Write a function to simulate a guessing game where the user guesses a number between 1 and 10, and check the number of attempts it takes to guess the correct number.
  assert guessing_game(5, [1, 3, 5]) == 3
  assert guessing_game(7, [2, 4, 6, 7]) == 4
  assert guessing_game(2, [8, 6, 4, 2]) == 4
output: def guessing_game(correct_number, guesses):
      for attempt, guess in enumerate(guesses, start=1):
          if guess == correct_number:
              return attempt
      return -1