Accenture interview question

JavaScript based written test