Mathematics
100 + 11 = 32111 + 1000 = 43100 + 100 = _____?
Explanation
Look at the number of distinct digits in each addend: 100 has digits {1,0} → 2 distinct; the other 100 also has 2 distinct.
The code concatenates those counts, so 2 and 2 → 22.