TikTok interview question

Design a file system. LeetCode 1166.