Accenture interview question

Fix the code that was displayed