A function fun() defined on stacks of integers satisfies the following properties,fun(∅) = 0 and fun(push (S, r)) = max (fun(S), 0) + r for all stacks S and integers r.If a stack S contains the integers 20, -7, 16, -14, 5, 3, 13 in order from bottom to top,what is fun(S)?