WePay interview question

Generic JS algorithm problem solving challenge.