array-Max Value in Array

testcase # 2 is showing wrong-answer, need to kno why?