Microsoft interview question

Implement a function to add files to a file management system.