OBSS interview question

java technical questions. a problem to solve in 15 mins