how we will apply min max procedure on given tree.for example…