Pregunta de entrevista de Thoughtworks

1. Adding book to library problem.