Accenture interview question

Mainly asked from the project and java basics