Accenture interview question

Question on Javascript fundamental and code debug problems