Initialize a list of strings with team numbers from 1 to n.
While the size of the list is greater than 1:
a. Create a new list to store the results of the current round.
b. Iterate over the first half of the list and pair each team with the corresponding team from the second half (i.e., team at index i with team at index n-1-i).
c. Format the pair as a string in the form '(team1,team2)' and add it to the new list.
d. Replace the old list with the new list.
Return the first element of the list, which contains the final match in the correct format.