Rype Interview Question

Java architecture