reverse static method
Implementation
static List<int> reverse(List<int> myArray) {
List<int> reversed = List.filled(myArray.length, 0);
for (int i = 0; i < myArray.length; i++) {
reversed[i] = myArray[myArray.length - (i + 1)];
}
return reversed;
}