Tokopedia interview question

Design data structure for certain problem