Problem
Model a filesystem of folders that contain files and sub-folders, and compute the total size of any node (the sum of all files beneath it). Solve it iteratively, then improve with a recursive traversal.
Input / Output
Constraints
Example
folder{ a.txt(10), sub{ b.txt(5) } } -> 15.