Pergunta de entrevista da empresa Accenture

Arrays and hashMaps with few conditions