Write a **program** that replicates the javascript function `slice`.
Write a **function** that replicates the javascript function `slice`.
The program receives an array of strings and one or more integers, and returns an array of strings. The returned array is part of the received one but cut from the position indicated in the first int, until the position indicated by the second int.
The function receives an array of strings and one or more integers, and returns an array of strings. The returned array is part of the received one but cut from the position indicated in the first int, until the position indicated by the second int.
In case there only exists one int, the resulting array begins in the position indicated by the int and ends at the end of the received array.