Maximum value in a array

what is the problem with the code?

@2018kucp1041
hello lakshit,
check constraints
image

numbers can be negative as well so u cannot initialise largest (variable) with zero.

problem solved . Thanks