/**
 * This function takes a list of books and a list of indices as arguments.
 * It updates the books at the specified indices by adding " - Checked out" to their titles.
 * Finally, it returns the updated list of books.
 *
 * @param books A list of books.
 * @param indices A list of indices.
 * @return The updated list of books.
 */
fun updateBooks(books: MutableList<String>, indices: List<Int>): List<String> {

    for (index in indices) {
        books[index] += " - Checked out"
    }
    return books
}
/**
 * This function takes a list of books and a list of indices as arguments.
 * It updates the books at the specified indices by adding " - Checked out" to their titles.
 * Finally, it returns the updated list of books.
 *
 * @param books A list of books.
 * @param indices A list of indices.
 * @return The updated list of books.
 */
fun updateBooks(books: MutableList<String>, indices: List<Int>): List<String> {
/**
 * This function takes a list of books and a list of indices as arguments.
 * It updates the books at the specified indices by adding " - Checked out" to their titles.
 * Finally, it returns the updated list of books.
 *
 * @param books A list of books.
 * @param indices A list of indices.
 * @return The updated list of books.
 */
fun updateBooks(books: MutableList<String>, indices: List<Int>): List<String> {

    for (index in indices) {
        books[index] += " - Checked out"
    }
    return books
}