karn's submission of Bookshelves | CodeChef