Accenture interview question

Algorithm, system design, coding in Java