Javascript interview question for Experience