Write a function sumPositiveNumbers(arr) that takes an array of numbers and returns the sum of all positive numbers in the array.
Example 1:

Input: [1, -2, 3, 4, -5]
Output: 8