Morgan Stanley interview question

Design a book index