/**
 * This function takes a string and a character as input and uses short-circuiting to find if the character is present in the string.
 * It returns true if the character is found, and false otherwise.
 */
fun shortCircuitFindChar(string: String, char: Char): Boolean {

    var i = 0
    while (i < string.length && string[i] != char) {
        i++
    }
    return i < string.length
}
/**
 * This function takes a string and a character as input and uses short-circuiting to find if the character is present in the string.
 * It returns true if the character is found, and false otherwise.
 */
fun shortCircuitFindChar(string: String, char: Char): Boolean {
/**
 * This function takes a string and a character as input and uses short-circuiting to find if the character is present in the string.
 * It returns true if the character is found, and false otherwise.
 */
fun shortCircuitFindChar(string: String, char: Char): Boolean {

    var i = 0
    while (i < string.length && string[i] != char) {
        i++
    }
    return i < string.length
}