Domanda di colloquio di Shopee

Multiple questions about big O notation, dan solving code problem about data structures