Wrong answer ojioj

what is the wrong with my code
my approach is same as discussed above

@mayank10 maximum is explained here ,

i think my code is same as discussed in the given link