Pergunta de entrevista da empresa EarnIn

How would you design a library API?