conventional method to find the gratest number using for loop
Discussion posts and replies are publicly visible
reduce( rule!getMaxNumber(accumulator: _, item: _), 0, ri!array )
We can use reduce function
Create a rule which will compare the current item and accumulator and return the max number and use that rule as predicate in reduce fucntion