Copy Books(LintCode 437):

Problem