21.extractElementsBetweenPositions

Write a function named extractElementsBetweenPositions that receives 3 parameters:

  • an Array of numbers - numbers
  • a number - n
  • a number - m

and returns a new Array containing all elements that have their position between n and m (both included).

NOTE: there's no guarantee that n is lower than m.

Example 1

Input

numbers

=

n

=

m

=

Output