C Anagrams

Same output as the JavaScript version in my tests.