Solve: Count Negative Values Function
Created By: Justin Maier
/ Version: 2024.8.0
Write a function countNegatives
that returns the number of negative values in an int
array.
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.