Microsoft Exchange Create Dynamic folder


I am using ms exchange to create folders in my email account, my requirement is like folders create dynamically

Custom Folder (Parent Folder Present ignore if not create)->2021( child Folder Present ignore if not create)-June( child Folder Present ignore if not create)

@ I tried c# it created only parent folder Could you please any solution

ExchangeService service = new ExchangeService();
service.Credentials = new NetworkCredential(ArgUserName, ArgPassword);
// Look up the user’s EWS endpoint by using Autodiscover.
service.Url = new Uri(“Here Service URL”);
Folder folder1 = new Folder(service);
folder1.DisplayName = “Custom Folder”;
folder1.FolderClass = “IPF.Note”;
// Save the folder as a child folder of the Inbox.
Console.WriteLine("Folder Root: " + WellKnownFolderName.Root);

@ppr @Yoichi @supermanPunch