Bristlecone interview question

Java Design priciple