Pergunta de entrevista da empresa cronn

Two small Refactoring Questions. Find Frequencies of Letters using Hashmap in Java.