Accenture interview question

small online case (easy calculation)