Pregunta de entrevista de Citi

Question based on pattern matching.