Medium
Library Books
Write
Book (title, available) and Library with borrow(title) and give_back(title). Borrowing an unavailable or unknown book prints Not available. Read the titles, then commands borrow T / return T, then print available titles sorted (or none).Input
A line of titles, n, then n commands.
Output
Messages, then available titles.
Sample 1
Input
A B C 3 borrow A borrow A return A
Output
Not available A B C
Sample 2
Input
X 1 borrow Y
Output
Not available X
Output appears here