/**
 * Given a list of equipment and a list of faulty parts, remove all the faulty parts from the equipment list.
 *
 * @param equipment A list of equipment.
 * @param faultyParts A list of faulty parts.
 * @return The modified equipment list without the faulty parts.
 */
fun removeFaultyParts(equipment: MutableList<String>, faultyParts: List<String>): List<String> {

    val iterator = equipment.iterator()
    while (iterator.hasNext()) {
        val part = iterator.next()
        if (part in faultyParts) {
            iterator.remove()
        }
    }
    return equipment
}

// Example usage
/**
 * Given a list of equipment and a list of faulty parts, remove all the faulty parts from the equipment list.
 *
 * @param equipment A list of equipment.
 * @param faultyParts A list of faulty parts.
 * @return The modified equipment list without the faulty parts.
 */
fun removeFaultyParts(equipment: MutableList<String>, faultyParts: List<String>): List<String> {
/**
 * Given a list of equipment and a list of faulty parts, remove all the faulty parts from the equipment list.
 *
 * @param equipment A list of equipment.
 * @param faultyParts A list of faulty parts.
 * @return The modified equipment list without the faulty parts.
 */
fun removeFaultyParts(equipment: MutableList<String>, faultyParts: List<String>): List<String> {

    val iterator = equipment.iterator()
    while (iterator.hasNext()) {
        val part = iterator.next()
        if (part in faultyParts) {
            iterator.remove()
        }
    }
    return equipment
}

// Example usage