/**
 * This function takes a string and a target character as input.
 * It then finds all occurrences of the target character in the string using loops and returns the count.
 */
fun findCharacters(string: String, target: Char): Int {

    var count = 0
    for (char in string) {
        if (char == target) {
            count++
        }
    }
    return count
}
/**
 * This function takes a string and a target character as input.
 * It then finds all occurrences of the target character in the string using loops and returns the count.
 */
fun findCharacters(string: String, target: Char): Int {
/**
 * This function takes a string and a target character as input.
 * It then finds all occurrences of the target character in the string using loops and returns the count.
 */
fun findCharacters(string: String, target: Char): Int {

    var count = 0
    for (char in string) {
        if (char == target) {
            count++
        }
    }
    return count
}