Codejam | Anagrams problem |deleting unwanted directories