Array Constraints

Same approach can be used for minimum.