/**
 * As an electrician, you are given two lists - cablesInstalled and cableInventory.
 * The cablesInstalled list contains the cables that have been installed in a building.
 * The cableInventory list contains the cables available in the warehouse.
 *
 * Your task is to write a function that determines which cables are needed to complete the installation in the building.
 *
 * @param cablesInstalled A list containing the cables that have been installed.
 * @param cableInventory A list containing the cables available in the warehouse.
 * @return A list of cables that are needed to complete the installation.
 *
 * Example:
 * val cablesInstalled = listOf("RG6", "CAT5", "Fiber Optic")
 * val cableInventory = listOf("CAT5", "Fiber Optic", "RG6", "Cat6", "Fiber Optic")
 * missingCablesNeeded(cablesInstalled, cableInventory) -> ["Cat6", "Fiber Optic"]
 */
fun missingCablesNeeded(cablesInstalled: List<String>, cableInventory: List<String>): List<String> {

    return cableInventory.filter { cable -> cable !in cablesInstalled }
}
/**
 * As an electrician, you are given two lists - cablesInstalled and cableInventory.
 * The cablesInstalled list contains the cables that have been installed in a building.
 * The cableInventory list contains the cables available in the warehouse.
 *
 * Your task is to write a function that determines which cables are needed to complete the installation in the building.
 *
 * @param cablesInstalled A list containing the cables that have been installed.
 * @param cableInventory A list containing the cables available in the warehouse.
 * @return A list of cables that are needed to complete the installation.
 *
 * Example:
 * val cablesInstalled = listOf("RG6", "CAT5", "Fiber Optic")
 * val cableInventory = listOf("CAT5", "Fiber Optic", "RG6", "Cat6", "Fiber Optic")
 * missingCablesNeeded(cablesInstalled, cableInventory) -> ["Cat6", "Fiber Optic"]
 */
fun missingCablesNeeded(cablesInstalled: List<String>, cableInventory: List<String>): List<String> {
/**
 * As an electrician, you are given two lists - cablesInstalled and cableInventory.
 * The cablesInstalled list contains the cables that have been installed in a building.
 * The cableInventory list contains the cables available in the warehouse.
 *
 * Your task is to write a function that determines which cables are needed to complete the installation in the building.
 *
 * @param cablesInstalled A list containing the cables that have been installed.
 * @param cableInventory A list containing the cables available in the warehouse.
 * @return A list of cables that are needed to complete the installation.
 *
 * Example:
 * val cablesInstalled = listOf("RG6", "CAT5", "Fiber Optic")
 * val cableInventory = listOf("CAT5", "Fiber Optic", "RG6", "Cat6", "Fiber Optic")
 * missingCablesNeeded(cablesInstalled, cableInventory) -> ["Cat6", "Fiber Optic"]
 */
fun missingCablesNeeded(cablesInstalled: List<String>, cableInventory: List<String>): List<String> {

    return cableInventory.filter { cable -> cable !in cablesInstalled }
}