Accenture Interview Question

There was one coding round.