Implement the function determine_game_outcome(n, exits) that determines the outcome of a game based on player moves through a series of exits.
Functionality:
The function takes two parameters: an integer n (the number of locations) and a list exits of length n where exits[i] indicates the next location to move to from location i. A value of -1 in the list signifies a winning exit.
The function should track the player's journey through the locations, ensuring that it does not revisit any location. If the player reaches a location with exit -1, the function should return "Win". Otherwise, if the player revisits a location (indicating a cycle), the function should return "Lose".
Input Requirements:
n (integer): a positive integer (1 ≤ n ≤ 10^5) representing the number of locations.
exits (list of integers): a list of size n, where each element exits[i] (−1 ≤ exits[i] < n) represents the next location to move to.
Output Requirements:
Return a string: either "Win" if the player can successfully exit, or "Lose" if the player revisits a location.
File Requirements:
The solution must be implemented in a file called /app/solution.py.