/**
 * Given a list of wires, count the number of faulty wires in the list.
 * A wire is considered faulty if its voltage is above 220V or its current is above 10A.
 *
 * @param wireList List of pairs containing the voltage and current of each wire.
 * @return The count of faulty wires.
 */
fun countFaultyWires(wireList: List<Pair<Int, Int>>): Int {

    var faultyCount = 0  // Variable to store the count of faulty wires

    // Iterate over each wire in the wire list
    for (wire in wireList) {
        val voltage = wire.first  // Get the voltage of the current wire
        val current = wire.second  // Get the current of the current wire

        // Check if voltage is above 220V or current is above 10A
        if (voltage > 220 || current > 10) {
            faultyCount++  // Increment faultyCount if wire is faulty
        }
    }

    return faultyCount
}
/**
 * Given a list of wires, count the number of faulty wires in the list.
 * A wire is considered faulty if its voltage is above 220V or its current is above 10A.
 *
 * @param wireList List of pairs containing the voltage and current of each wire.
 * @return The count of faulty wires.
 */
fun countFaultyWires(wireList: List<Pair<Int, Int>>): Int {
/**
 * Given a list of wires, count the number of faulty wires in the list.
 * A wire is considered faulty if its voltage is above 220V or its current is above 10A.
 *
 * @param wireList List of pairs containing the voltage and current of each wire.
 * @return The count of faulty wires.
 */
fun countFaultyWires(wireList: List<Pair<Int, Int>>): Int {

    var faultyCount = 0  // Variable to store the count of faulty wires

    // Iterate over each wire in the wire list
    for (wire in wireList) {
        val voltage = wire.first  // Get the voltage of the current wire
        val current = wire.second  // Get the current of the current wire

        // Check if voltage is above 220V or current is above 10A
        if (voltage > 220 || current > 10) {
            faultyCount++  // Increment faultyCount if wire is faulty
        }
    }

    return faultyCount
}