generic tree questions gfg code example Example: how to build a generic tree this is the way of the building of generic tree