Sigma Computing Interview Question

Design a filesystem object in python using the given object structure and under time complexity constraints.