Generic Tree Construction Code

Can I get the code for this, or I’ll have to copy it while watching vedio?

Hi abhinav,
No code will not be given for any problem.
Please try to write it your own as it will help you in long run.
Thankyou