Given an array of numbers and string which can be in form:
"[a,b]"
"(a,b]"
"[a,b)"
"(a,b)"
More about intervals.
Given an array of numbers and string - interval.
Return array of numbers between interval. Output must be sorted array. If string/array is empty, return empty array.