Optimize profitability for coding contract decisions | Capital One Interview Question