Accenture Java Coding Question