Amazon interview question

How would you index a phone directory? What data structures would you use? Implement it.