Pergunta de entrevista da empresa Nextdoor

Given a list of file paths, output a formatted directory structure