Accenture interview question

2 coding questions and moderate js questions