Challenge 1: Replica of PHP's "max" Function
Understand how to implement a custom max function in PHP using the fold operation from a functional library. Learn to filter inputs to non-negative integers and return either the maximum value or zero for invalid cases.
Problem statement
Write a version of PHP’s max function called _max that utilizes the fold operation of the bingo-functional library. Ensure that only non-negative integers are compared and other value types evaluate to ...