/**
 * This function takes in a dictionary of books and returns a list of available books.
 *
 * @param books A dictionary containing the books, where the keys are the book titles and the values indicate their availability.
 * @return A list of available books.
 */
fun getAvailableBooks(books: Map<String, Boolean>): List<String> {

    val availableBooks = mutableListOf<String>()

    for ((bookTitle, availability) in books) {
        if (availability) {
            availableBooks.add(bookTitle)
        }
    }

    return availableBooks
}
/**
 * This function takes in a dictionary of books and returns a list of available books.
 *
 * @param books A dictionary containing the books, where the keys are the book titles and the values indicate their availability.
 * @return A list of available books.
 */
fun getAvailableBooks(books: Map<String, Boolean>): List<String> {
/**
 * This function takes in a dictionary of books and returns a list of available books.
 *
 * @param books A dictionary containing the books, where the keys are the book titles and the values indicate their availability.
 * @return A list of available books.
 */
fun getAvailableBooks(books: Map<String, Boolean>): List<String> {

    val availableBooks = mutableListOf<String>()

    for ((bookTitle, availability) in books) {
        if (availability) {
            availableBooks.add(bookTitle)
        }
    }

    return availableBooks
}