Apple interview question

How to transform values in a JavaScript array