Amazon interview question

design a public library system