Loop Commerce interview question

Javascript