• It seems too simple or it is?

Question related to mission The Flat Dictionary

 

solved by just make a simple fix for unique use case. the goal of this mission is understand the algorithm? because of it's actually correct on about 97% ?)