Solve: Sum of Positive Values Function
Created By: Justin Maier
/ Version: 2024.8.1
Write a function sumOfPositives that takes an int array and returns the sum of the array's positive values.
If the array is empty the sum would be 0.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.