Airwallex interview question

some simple complexity questions, sorting, data structure