A Solution to ITA Software's programming problem.