Pregunta de entrevista de Google Cloud

String hashmap question - pattern was leetcode type.