Ordered Data Structures Interview Question