Accenture interview question

asked me about js and solving problems