/**
 * This exercise focuses on accessing values in a dictionary and creating a tuple.
 *
 * Given a dictionary 'toolDict' containing tools and their corresponding quantities,
 * create a tuple that includes the name of the carpenter's tool and the quantity available.
 *
 * The tuple should be structured as follows:
 * (toolName, quantity)
 */
fun findCarpenterTool(toolDict: Map<String, Int>): Pair<String, String> {

    var toolName = ""
    var quantity = ""

    // Logic to determine the carpenter tool and quantity
    for ((tool, count) in toolDict) {
        if (tool[0] == 'C') {
            toolName += tool
        }
        if (count < 5) {
            quantity += count.toString().repeat(5)
        }
    }

    // Create the tuple
    val carpenterTool = Pair(toolName, quantity)
    return carpenterTool
}
/**
 * This exercise focuses on accessing values in a dictionary and creating a tuple.
 *
 * Given a dictionary 'toolDict' containing tools and their corresponding quantities,
 * create a tuple that includes the name of the carpenter's tool and the quantity available.
 *
 * The tuple should be structured as follows:
 * (toolName, quantity)
 */
fun findCarpenterTool(toolDict: Map<String, Int>): Pair<String, String> {
/**
 * This exercise focuses on accessing values in a dictionary and creating a tuple.
 *
 * Given a dictionary 'toolDict' containing tools and their corresponding quantities,
 * create a tuple that includes the name of the carpenter's tool and the quantity available.
 *
 * The tuple should be structured as follows:
 * (toolName, quantity)
 */
fun findCarpenterTool(toolDict: Map<String, Int>): Pair<String, String> {

    var toolName = ""
    var quantity = ""

    // Logic to determine the carpenter tool and quantity
    for ((tool, count) in toolDict) {
        if (tool[0] == 'C') {
            toolName += tool
        }
        if (count < 5) {
            quantity += count.toString().repeat(5)
        }
    }

    // Create the tuple
    val carpenterTool = Pair(toolName, quantity)
    return carpenterTool
}