You have football teams. Each team has a home uniform color and a guest uniform color. When two teams play, one wears home colors and the other wears guest colors. A conflict happens if the home team's home color matches the guest team's guest color.
Your task: count how many games have uniform conflicts. For all possible pairs of teams, check if team A's home color equals team B's guest color when A hosts. This tests your ability to model objects with multiple properties.
Before reading on, think: how would you represent a team in code? What properties does each team need? How do you compare teams for conflicts?