HSBC interview question

java questions on looping code snippets