Standard Chartered Bank interview question

Motivation