You are given a tree of N+1 levels from 0 to N. There is only one node at level 0 that is called as root.There is an array arr of size N where arr[i] denotes the number of