Pregunta de entrevista de Workday

Problem involving sets and maps