这里应该用es6的reduce解题

function sum(arr) {
    return arr.reduce((a, b) => {
        return (a >>> 0) + (b >>> 0)
    })
}