Marlabs interview question

Java technical questions