/**
 * A carpenter wants to remove all the nails from a piece of wood. Write a function that takes in two lists: 'wood'
 * represents the piece of wood with nails, and 'nails' represents the nails to be removed. The function should remove
 * all the nails in the 'nails' list from the 'wood' list.
 *
 * @param wood A list representing the piece of wood with nails.
 * @param nails A list representing the nails to be removed.
 * @return The updated 'wood' list with nails removed.
 */
fun removeNailsFromWood(wood: MutableList<String>, nails: List<String>): MutableList<String> {

    for (nail in nails) {
        if (nail in wood) {
            wood.remove(nail)
        }
    }
    return wood
}
/**
 * A carpenter wants to remove all the nails from a piece of wood. Write a function that takes in two lists: 'wood'
 * represents the piece of wood with nails, and 'nails' represents the nails to be removed. The function should remove
 * all the nails in the 'nails' list from the 'wood' list.
 *
 * @param wood A list representing the piece of wood with nails.
 * @param nails A list representing the nails to be removed.
 * @return The updated 'wood' list with nails removed.
 */
fun removeNailsFromWood(wood: MutableList<String>, nails: List<String>): MutableList<String> {
/**
 * A carpenter wants to remove all the nails from a piece of wood. Write a function that takes in two lists: 'wood'
 * represents the piece of wood with nails, and 'nails' represents the nails to be removed. The function should remove
 * all the nails in the 'nails' list from the 'wood' list.
 *
 * @param wood A list representing the piece of wood with nails.
 * @param nails A list representing the nails to be removed.
 * @return The updated 'wood' list with nails removed.
 */
fun removeNailsFromWood(wood: MutableList<String>, nails: List<String>): MutableList<String> {

    for (nail in nails) {
        if (nail in wood) {
            wood.remove(nail)
        }
    }
    return wood
}