Pergunta de entrevista da empresa Google

Given a list of absolute file paths, implement a function to store all the paths in a tree, and a function to retrieve all the paths.