Standard Chartered Bank interview question

1st and 2nd round - normal Java questions