DXC Technology interview question

Design a library system API with some requirements.