Fidelity Investments Interview Question

Java DSA on anagram arrays question