Accenture Interview Question

not passing the challenge before the interview