/**
 * This function takes a string and a target character as input and returns the number of occurrences
 * of the target character within the string.
 *
 * @param text The input string.
 * @param targetCharacter The character to find within the string.
 * @return The number of occurrences of the target character within the string.
 */
fun findCharacter(text: String, targetCharacter: Char): Int {

    var count = 0
    for (char in text) {
        if (char == targetCharacter) {
            count++
        }
    }
    return count
}
/**
 * This function takes a string and a target character as input and returns the number of occurrences
 * of the target character within the string.
 *
 * @param text The input string.
 * @param targetCharacter The character to find within the string.
 * @return The number of occurrences of the target character within the string.
 */
fun findCharacter(text: String, targetCharacter: Char): Int {
/**
 * This function takes a string and a target character as input and returns the number of occurrences
 * of the target character within the string.
 *
 * @param text The input string.
 * @param targetCharacter The character to find within the string.
 * @return The number of occurrences of the target character within the string.
 */
fun findCharacter(text: String, targetCharacter: Char): Int {

    var count = 0
    for (char in text) {
        if (char == targetCharacter) {
            count++
        }
    }
    return count
}