MAERSK Interview Question

A code based on file management and another that used recursion.