Team Forming

Notes:

After executing the 1st query, the teams are: [1,2], [3], [4], [5]. After executing the 2nd query, the teams are: [1,2], [3,4], [5]. After executing the 3rd query, the teams are: [1,2,3,4], [5]. After executing the 4th query, the only one team is: [1,2,3,4,5].


This is a companion discussion topic for the original entry at https://toph.co/p/team-forming