How to report the number of good colors
The number of colors that are correct but in the wrong position is:
- the sum of the number of colors shared
- minus the number of colors in the same position
- so if both strings had 2 reds and 3 blues and 2 colors were in the right position, the answer would be 3