def detect_anagrams(string, array): pass