Pergunta de entrevista da empresa Workday

Problem involving sets and maps