How does this recursive algorithm work?
The base case works because, if the array contains only 2 elements, it compares them and return the biggest. 
Starting from this assumption, the recursive call to the function maxNumber compare the maxnumber of the precedent call to the next element in the array. 
when the list has been read all the way to the end, the algorithm will return the max number of the whole list.