Amazon interview question

Constructing a web ui for a book library