Gainsight Interview Question

Tree with recursion with given data?