Amazon Interview Question

design a public library system