My roommate posed the following problem to me last week:
For example, you might have 3 pens each with 4 parts.
Call their colors Red, Green, and Blue (R,G, and B) and call their parts 1,2,3, and 4.
We can write them as follows:
(each column is a pen of a solid color in the following picture)
R1 G1 B1
R2 G2 B2
R3 G3 B3
R4 G4 B4
The first row must always contain parts of type 1.
The second row must always contain parts of type 2.
The nth row must always contain parts of type n.
So the question can be rephrased as follows: