Rype interview question

Java architecture