Add brute force solution in Python for small inputs of '2011/Round 1C/C. Perfect Harmony'.