Accenture Interview Question

Arrays and hashMaps with few conditions