Amazon interview question

File System design question in Python