You found the hint a long time ago.
How many wires are there?
4 x 3 x 2 x 1 = 24 you could try all the combinations.
There is an easier way. Like I said you found the hint long ago.