Gaviti Interview Question

Basic anagram question with strings.