Pregunta de entrevista de Tokopedia

Design data structure for certain problem