/**
 * Given a string and a character, count the number of occurrences of that character in the string.
 *
 * @param string The input string
 * @param character The character to find occurrences of
 * @return The number of occurrences of the character in the string
 */
fun countOccurrences(string: String, character: Char): Int {

    var count = 0

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

    return count
}
/**
 * Given a string and a character, count the number of occurrences of that character in the string.
 *
 * @param string The input string
 * @param character The character to find occurrences of
 * @return The number of occurrences of the character in the string
 */
fun countOccurrences(string: String, character: Char): Int {
/**
 * Given a string and a character, count the number of occurrences of that character in the string.
 *
 * @param string The input string
 * @param character The character to find occurrences of
 * @return The number of occurrences of the character in the string
 */
fun countOccurrences(string: String, character: Char): Int {

    var count = 0

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

    return count
}