Frage im Vorstellungsgespräch bei cronn

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