Map allows us to apply an operation to each item of an array, returning a new array that contains the items with the operation applied.
This can save us lot of "for" loops (enhannce readibility).
Let's implement a function that will apply a discount all the elements of a given array.