Standard Chartered Bank interview question

asked me to write some java programs