Compute partnership profit and break-even population | Capital One Interview Question