XPO interview question

Journal entry question