/**
 * Given two lists of wires, find the common wires between them.
 *
 * @param wire1 The first list of wires.
 * @param wire2 The second list of wires.
 * @return A list containing the common wires between the two lists.
 */
fun findCommonWires(wire1: List<String>, wire2: List<String>): List<String> {

    // Initialize an empty list to store the common wires
    val commonWires = mutableListOf<String>()

    // Iterate over each wire in the first list
    for (wire in wire1) {
        // Check if the wire is present in the second list
        if (wire in wire2) {
            // Append the wire to the commonWires list
            commonWires.add(wire)
        }
    }

    // Return the list of common wires
    return commonWires
}
/**
 * Given two lists of wires, find the common wires between them.
 *
 * @param wire1 The first list of wires.
 * @param wire2 The second list of wires.
 * @return A list containing the common wires between the two lists.
 */
fun findCommonWires(wire1: List<String>, wire2: List<String>): List<String> {
/**
 * Given two lists of wires, find the common wires between them.
 *
 * @param wire1 The first list of wires.
 * @param wire2 The second list of wires.
 * @return A list containing the common wires between the two lists.
 */
fun findCommonWires(wire1: List<String>, wire2: List<String>): List<String> {

    // Initialize an empty list to store the common wires
    val commonWires = mutableListOf<String>()

    // Iterate over each wire in the first list
    for (wire in wire1) {
        // Check if the wire is present in the second list
        if (wire in wire2) {
            // Append the wire to the commonWires list
            commonWires.add(wire)
        }
    }

    // Return the list of common wires
    return commonWires
}