[Solved] Alternate Leaf Nodes Sum Contest Problem
Alternate Leaf Nodes Sum: You need to build a BST from the given array A of size N. The array contains distinct elements. You need to build the tree using the Array elements in the order of their arrival (A[0]…