(Choose 1 answer)
Given the algorithm to find the maximum element of a list (See picture)
Procedure Max (a1,a2,..., an: integers)Max:=a1for i:= 2 to n do if Max < a, then Max: = a
If the input is the sequence 4, 1, 5, 2, 3, 9, 7, then all the values of the variable Max are
A. 4, 1, 5, 9
B. 1, 4, 5, 2, 9, 7
C. 4, 5, 9
D. 4, 5, 9, 7
E31