Understanding Data Structures Interview Question