/**
 * This function takes a string and a character as input, and returns the number of occurrences of that character in the string using loops.
 */
fun findCharacters(string: String, character: Char): Int {

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

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