Deutsche Bank interview question

Multi-Step accounting Question