Solution of Count 47

TODO(cosmin)
Hint: Mo's Algorithm
Questions?

Sponsors Gold