Use a CTE totals with each account's total credits and debits, then show account_id, credits, debits.
totals
account_id
credits
debits
Each hint gives a little more help. Try on your own first.
Run your code to see the output here.