/**
 * Given a list of books, this function should display the books in the following format:
 * - Book Title: <title>, Author: <author>, Year: <year>
 *
 * @param booksList A list of dictionaries, where each dictionary represents a book with properties like title, author, and year.
 */
fun displayBooks(booksList: List<Map<String, String>>) {

    for (book in booksList) {
        println("- Book Title: ${book["title"]}, Author: ${book["author"]}, Year: ${book["year"]}")
    }
}
/**
 * Given a list of books, this function should display the books in the following format:
 * - Book Title: <title>, Author: <author>, Year: <year>
 *
 * @param booksList A list of dictionaries, where each dictionary represents a book with properties like title, author, and year.
 */
fun displayBooks(booksList: List<Map<String, String>>) {
/**
 * Given a list of books, this function should display the books in the following format:
 * - Book Title: <title>, Author: <author>, Year: <year>
 *
 * @param booksList A list of dictionaries, where each dictionary represents a book with properties like title, author, and year.
 */
fun displayBooks(booksList: List<Map<String, String>>) {

    for (book in booksList) {
        println("- Book Title: ${book["title"]}, Author: ${book["author"]}, Year: ${book["year"]}")
    }
}