Accenture interview question

Basic C and Java languages