Domanda di colloquio di Airwallex

some simple complexity questions, sorting, data structure