Microsoft Interview Question

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