Flip the bit using xor() instead of the usual "1 - ".  Both correct, the first is cooler... at least today.
Some array utilities for monotonicity with their unit tests.
Implement isDecreasing() and is isStrictlyDecreasing() along with tests.