Accenture interview question

Technical question about SQL and java