Question d’entretien chez ShopBack

Describe solution and time complexity