Yotpo Interview Question

Design and implement a file system, with fs manager that implements: AddFile(string parentDirName, string fileName, int fileSize) AddDirectory(string parentDirName, string name) Delete(string fileName) Print the tree structure - Use a dictionary to retrieve/add the file/directory in o(1) - Use the Composite Pattern in your implementation: the file and directory inherit from a common base like node, and the dictionary holds items of type node