Accenture Interview Question

reasoning