Accenture Interview Coding Question