SLB interview question

How to handle debits/credits.