Hola interview question

minify a function and tweak the performance