Pregunta de entrevista de Fidelity Investments

Java DSA on anagram arrays question