Your program will input a list of players, each of whom has a name and a skill level. Pairs of players are repeatedly formed and the members of a pair play a match against each other. Players are eliminated from the competition when they have two losses. Then, players with one loss continue to play matches until only one player remains with one loss. Finally, the players with zero and one losses play one or two matches until one of them has two losses.
Players stand in lines until it is time for a match.
When match time comes, the first two players in the appropriate line get out of line and play a match. The winner goes to the back of the same line, and the loser goes to the back of the line containing players with the appropriate number of losses. Players in any line play in order. In other words, the first two play, then the second two play, then the third two play, and so on, until only one player remains. Players should be output in the reverse of the order in which they were eliminated.