A Mathematical Study Of Purchasing Airline Tickets