Python Using Data Structures Interview Question