XYZ (A[1..n]) 1. if n=1 then retur A[1] 2. else temp← XYZ (A[..n-1]) 3. if temp < A[n] 4. then return temp 5. else return A[n]