Use of max

Can somebody please explain me the use of max while storing the input in list a in this solution

Correct Solution - CodeChef: Practical coding for everyone

My Solution - CodeChef: Practical coding for everyone

Note → the c variable input is always greater than 1

P.S. - I wrote the same answer without max and got a wrong answer

Please Help