OCBC interview question

Java basics, algorithms and analysis