Mozilla interview question

Asked to code, and then iteratively, optimize a function.