Airwallex Interview Question

some simple complexity questions, sorting, data structure