Pergunta de entrevista da empresa Onebrief

A function to identify anagrams is shown on CoderPad and you have to find the bug.