JetBrains interview question

Write simple API for file system