Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAI did not think about sorting and concatenating, so I used a bitmask instead. Philosophically, they are the same.
I had an idea of how to get this done, but still had to look at others for the finishing touch.