'My List
Dim elems As List = ["Apple", "Boy", "Car", "Daniel", "Enter", "Fast", "Gas", "Hot"]
'The function I need
elems = reverseExcept(elems, 0, 1, 7)
'Output
'["Apple", "Boy", "Gas", "Fast", "Enter", "Daniel", "Car", "Hot"]
'Note that "Enter" didn't change the position because there's an odd number of reorder elements
'in the case of an even number of elements, all the elements (except the the index 0, 1 and 7) should change