This program prints the folder hierarchy or folder tree or directory structure by taking input as no. of folders, each folder's ID, Parent ID and Name.