Implement bootstrap mean and variance | Airwallex Interview Question