以下哪个选项描述了递归函数 foo 的作用?
int foo(int arr[], int n) {
if (n == 1) {
return arr[0];
}
return max(arr[n - 1], foo(arr, n - 1));}