Accenture interview question

Core Java,Some basic spring