GALLO interview question

COGS and Inventory debit and credit question