Q-4. Logic R.com left child & if any mode has right child also then also calculated the value using recursion & take maximum of both left & right value is taken..