SLB Interview Question

How to handle debits/credits.