If max is less then head -> data then assign value of head -> data to max otherwise node points to next node .
if ( max < head . data ) : NEW_LINE INDENT max = head . data NEW_LINE DEDENT head = head . next NEW_LINE return max NEW_LINE