TikTok Interview Question

Design a file system. LeetCode 1166.