Hola Interview Question

minify a function and tweak the performance