Accenture interview question

Core java and DB