DBS Bank interview question

Refer to notes I made above.