c++ code
Reverse the order of elements in a vector of integers using two
functions:
(a) The first function takes the input vector a and return a
vector b with the input data but in the reverse order, e.g. input:
1, 2, 3 and output 3, 2, 1.
(b) The second function is a recursive one and it reverses the
input data in place (without using an additional vector).