A natural number n is read, followed by n integers representing the elements of an array v (indexed from 0 to n-1). Print the maximum value in the array, computed using a recursive function.
Define a recursive function maxRec(v, n) that returns the maximum of the first n elements of v:
maxRec(v, 1) = v[0]
maxRec(v, n) = max(v[n-1], maxRec(v, n-1)), for n > 1