If the code doesn't load, you can check it out on
GitHub
Group B
Q5: A book consists of chapters, chapters consist of sections, and sections consist of subsections. Construct a tree and print the nodes. Find the time and space requirements of your method.
Other Questions in Data Structures and Algorithms Laboratory