Traverse a path and print directory tree | Adobe Interview Question