Domanda di colloquio di Decagon

They asked a DSA question that involved array manipulation