/**
 * This function takes a string and a character as input, and returns true if the character is present
 * in the string and false otherwise. It uses loops to iterate through the string and checks for the
 * presence of the character using booleans.
 *
 * @param string The input string
 * @param character The character to search for
 * @return true if character is found in string, false otherwise
 */
fun findCharacterInString(string: String, character: Char): Boolean {

    var found = false
    var i = 0

    while (i < string.length) {
        if (string[i] == character) {
            found = true  // if character found, set found to true and break the loop
            break
        }
        i++
    }

    return found
}
/**
 * This function takes a string and a character as input, and returns true if the character is present
 * in the string and false otherwise. It uses loops to iterate through the string and checks for the
 * presence of the character using booleans.
 *
 * @param string The input string
 * @param character The character to search for
 * @return true if character is found in string, false otherwise
 */
fun findCharacterInString(string: String, character: Char): Boolean {
/**
 * This function takes a string and a character as input, and returns true if the character is present
 * in the string and false otherwise. It uses loops to iterate through the string and checks for the
 * presence of the character using booleans.
 *
 * @param string The input string
 * @param character The character to search for
 * @return true if character is found in string, false otherwise
 */
fun findCharacterInString(string: String, character: Char): Boolean {

    var found = false
    var i = 0

    while (i < string.length) {
        if (string[i] == character) {
            found = true  // if character found, set found to true and break the loop
            break
        }
        i++
    }

    return found
}