Accenture Interview Question

Java related question