Domanda di colloquio di Citi

Question based on pattern matching.