/**
 * This exercise requires the librarian to access the values in a dictionary and perform string concatenation to display the book information.
 *
 * @param librarian Name of the librarian.
 * @param books Dictionary containing book titles as keys and corresponding authors as values.
 * @return Concatenated string containing the librarian's greeting and the formatted book information.
 */
fun findBooks(librarian: String, books: Map<String, List<String>>): String {

    val greeting = "Hello, $librarian! Here are the books you have:"
    var bookInfo = ""

    for (book in books.values) {
        val title = book[0] // Accessing the title of the book
        val author = book[1] // Accessing the author of the book
        bookInfo += "\n- Title: $title, Author: $author" // Concatenating the book information
    }

    return greeting + bookInfo
}
/**
 * This exercise requires the librarian to access the values in a dictionary and perform string concatenation to display the book information.
 *
 * @param librarian Name of the librarian.
 * @param books Dictionary containing book titles as keys and corresponding authors as values.
 * @return Concatenated string containing the librarian's greeting and the formatted book information.
 */
fun findBooks(librarian: String, books: Map<String, List<String>>): String {
/**
 * This exercise requires the librarian to access the values in a dictionary and perform string concatenation to display the book information.
 *
 * @param librarian Name of the librarian.
 * @param books Dictionary containing book titles as keys and corresponding authors as values.
 * @return Concatenated string containing the librarian's greeting and the formatted book information.
 */
fun findBooks(librarian: String, books: Map<String, List<String>>): String {

    val greeting = "Hello, $librarian! Here are the books you have:"
    var bookInfo = ""

    for (book in books.values) {
        val title = book[0] // Accessing the title of the book
        val author = book[1] // Accessing the author of the book
        bookInfo += "\n- Title: $title, Author: $author" // Concatenating the book information
    }

    return greeting + bookInfo
}