isValidRange function

bool isValidRange(
  1. int min,
  2. int max
)

Implementation

bool isValidRange(int min, int max) {
  return !(min < 0 || max < 0) & (min < max);
}