Pregunta de entrevista de Capital One

OOD design question involving nested hashmaps