first attempt at anagram
TODO: Something is wrong with null terminator