/**
 * This function takes in two strings - farmersString and animalsString.
 * It finds and returns a list of characters that are present in farmersString but not in animalsString,
 * using loops for comparison.
 *
 * @param farmersString The string that represents the farmer's animals.
 * @param animalsString The string that represents all the animals.
 * @return A list of characters that are present in farmersString but not in animalsString.
 */
fun findNotEqualChars(farmersString: String, animalsString: String): List<Char> {

    val notEqualChars = mutableListOf<Char>()

    // Iterate over each character in farmersString
    for (char in farmersString) {
        var isEqual = false

        // Iterate over each character in animalsString
        for (animalChar in animalsString) {
            // Check if the character is equal
            if (char == animalChar) {
                isEqual = true
                break
            }
        }

        // If no equal character found in animalsString, add it to the list
        if (!isEqual) {
            notEqualChars.add(char)
        }
    }

    return notEqualChars
}
/**
 * This function takes in two strings - farmersString and animalsString.
 * It finds and returns a list of characters that are present in farmersString but not in animalsString,
 * using loops for comparison.
 *
 * @param farmersString The string that represents the farmer's animals.
 * @param animalsString The string that represents all the animals.
 * @return A list of characters that are present in farmersString but not in animalsString.
 */
fun findNotEqualChars(farmersString: String, animalsString: String): List<Char> {
/**
 * This function takes in two strings - farmersString and animalsString.
 * It finds and returns a list of characters that are present in farmersString but not in animalsString,
 * using loops for comparison.
 *
 * @param farmersString The string that represents the farmer's animals.
 * @param animalsString The string that represents all the animals.
 * @return A list of characters that are present in farmersString but not in animalsString.
 */
fun findNotEqualChars(farmersString: String, animalsString: String): List<Char> {

    val notEqualChars = mutableListOf<Char>()

    // Iterate over each character in farmersString
    for (char in farmersString) {
        var isEqual = false

        // Iterate over each character in animalsString
        for (animalChar in animalsString) {
            // Check if the character is equal
            if (char == animalChar) {
                isEqual = true
                break
            }
        }

        // If no equal character found in animalsString, add it to the list
        if (!isEqual) {
            notEqualChars.add(char)
        }
    }

    return notEqualChars
}