Keep as many transactions as possible, in their original order, without the account balance ever dipping below zero.
Keep as many transactions as possible, in their original order, without the account balance ever dipping below zero.
Opens with the full question.