Function to pre - calculate the array in [ ] which stores the maximum height when travelled via branches
using System ; using System . Collections . Generic ; public class GFG { static int MAX_NODES = 100 ; static int [ ] In = new int [ MAX_NODES ] ; static int [ ] Out = new int [ MAX_NODES ] ;