BDO interview question

Basic accounting entry on few scenario.