PayPal interview question

Do you know the reduce function?