AirFi interview question

Event loop, and basic algorithms