/**
 * The function calculates the number of circuit faults at a specific location for an electrician.
 *
 * @param faultLogs A set containing the logs of all circuit faults.
 * @param faultLocation The specific location to check for circuit faults.
 * @return The total number of circuit faults at the given location.
 */
fun calculateCircuitFaults(faultLogs: Set<String>, faultLocation: String): Int {

    var faultCount = 0

    for (log in faultLogs) {
        val components = log.split(',')
        
        if (components[0] == faultLocation) {
            faultCount++
        }
    }

    return faultCount
}
/**
 * The function calculates the number of circuit faults at a specific location for an electrician.
 *
 * @param faultLogs A set containing the logs of all circuit faults.
 * @param faultLocation The specific location to check for circuit faults.
 * @return The total number of circuit faults at the given location.
 */
fun calculateCircuitFaults(faultLogs: Set<String>, faultLocation: String): Int {
/**
 * The function calculates the number of circuit faults at a specific location for an electrician.
 *
 * @param faultLogs A set containing the logs of all circuit faults.
 * @param faultLocation The specific location to check for circuit faults.
 * @return The total number of circuit faults at the given location.
 */
fun calculateCircuitFaults(faultLogs: Set<String>, faultLocation: String): Int {

    var faultCount = 0

    for (log in faultLogs) {
        val components = log.split(',')
        
        if (components[0] == faultLocation) {
            faultCount++
        }
    }

    return faultCount
}