Pregunta de entrevista de Meta

They asked me to sort through a string using a hashmap.