WePay interview question

1. array summation 2. currency recognition