Python Get Root Path Definition Data Structures Interview Question