Accenture interview question

Core java and design pattern