Standard Chartered Bank interview question

java