Optimize flight and cargo bookings for profit | Optiver Coding Question