added working logic, but prints debug statements; also prints remaining books backwards
fixed print order
[3391 - Overflowing Bookshelf] Working Solution Submission