/**
 * The function takes in a dictionary containing pipe names as keys and their corresponding diameters as values.
 * It returns a list of pipe names whose diameters exceed a certain threshold.
 *
 * @param pipeDict A dictionary containing pipe names as keys and their corresponding diameters as values.
 * @return A list of pipe names whose diameters exceed a certain threshold.
 */
fun checkPipeDiameter(pipeDict: Map<String, Int>): List<String> {

    val threshold = 10  // Threshold diameter value
    
    // Create an empty list to store the pipe names
    val exceedingPipes = mutableListOf<String>()
    
    // Iterate over the dictionary using forEach loop to get the key-value pair
    pipeDict.forEach { (pipeName, diameter) ->
        // Check if the diameter exceeds the threshold
        if (diameter > threshold) {
            exceedingPipes.add(pipeName)
        }
    }
    
    return exceedingPipes
}
/**
 * The function takes in a dictionary containing pipe names as keys and their corresponding diameters as values.
 * It returns a list of pipe names whose diameters exceed a certain threshold.
 *
 * @param pipeDict A dictionary containing pipe names as keys and their corresponding diameters as values.
 * @return A list of pipe names whose diameters exceed a certain threshold.
 */
fun checkPipeDiameter(pipeDict: Map<String, Int>): List<String> {
/**
 * The function takes in a dictionary containing pipe names as keys and their corresponding diameters as values.
 * It returns a list of pipe names whose diameters exceed a certain threshold.
 *
 * @param pipeDict A dictionary containing pipe names as keys and their corresponding diameters as values.
 * @return A list of pipe names whose diameters exceed a certain threshold.
 */
fun checkPipeDiameter(pipeDict: Map<String, Int>): List<String> {

    val threshold = 10  // Threshold diameter value
    
    // Create an empty list to store the pipe names
    val exceedingPipes = mutableListOf<String>()
    
    // Iterate over the dictionary using forEach loop to get the key-value pair
    pipeDict.forEach { (pipeName, diameter) ->
        // Check if the diameter exceeds the threshold
        if (diameter > threshold) {
            exceedingPipes.add(pipeName)
        }
    }
    
    return exceedingPipes
}