Problem 3628: Book Shelf 2. Solved on 08/29/2014.