UBS interview question

technical questions related to Java