Problem

Count elements in [lo, hi].

Examples

  • rangeCount([1, 5, 9], 2, 8) -> 1
Compile and test (Ctrl+Enter)