Pregunta de entrevista de Citi

Data structure and Algorithm related.