/**
 * Given a recipe's required ingredients and the available quantities, this function
 * returns a string indicating whether all the required ingredients can be prepared.
 *
 * @param recipeIngredients The recipe's required ingredients separated by a space.
 * @param ingredientQuantity A tuple containing the available quantity of each ingredient.
 * @return A string indicating whether all the required ingredients can be prepared.
 *         "Ingredients are sufficient" if all ingredients can be prepared, otherwise "Insufficient ingredients".
 *
 * Example:
 * prepareIngredients("flour sugar butter", listOf(2, 3, 1)) => "Ingredients are sufficient"
 * prepareIngredients("chocolate milk eggs", listOf(4, 2, 1)) => "Insufficient ingredients"
 */
fun prepareIngredients(recipeIngredients: String, ingredientQuantity: List<Int>): String {

    // Split the recipe ingredients string into a list of required ingredients
    val requiredIngredients = recipeIngredients.split(" ")

    // Check if the length of required ingredients is greater than the list length
    if (requiredIngredients.size > ingredientQuantity.size) {
        return "Insufficient ingredients"
    }

    // Iterate over each required ingredient and corresponding available quantity
    // Add your implementation here

    return "" // Placeholder return, add your implementation
}
/**
 * Given a recipe's required ingredients and the available quantities, this function
 * returns a string indicating whether all the required ingredients can be prepared.
 *
 * @param recipeIngredients The recipe's required ingredients separated by a space.
 * @param ingredientQuantity A tuple containing the available quantity of each ingredient.
 * @return A string indicating whether all the required ingredients can be prepared.
 *         "Ingredients are sufficient" if all ingredients can be prepared, otherwise "Insufficient ingredients".
 *
 * Example:
 * prepareIngredients("flour sugar butter", listOf(2, 3, 1)) => "Ingredients are sufficient"
 * prepareIngredients("chocolate milk eggs", listOf(4, 2, 1)) => "Insufficient ingredients"
 */
fun prepareIngredients(recipeIngredients: String, ingredientQuantity: List<Int>): String {
/**
 * Given a recipe's required ingredients and the available quantities, this function
 * returns a string indicating whether all the required ingredients can be prepared.
 *
 * @param recipeIngredients The recipe's required ingredients separated by a space.
 * @param ingredientQuantity A tuple containing the available quantity of each ingredient.
 * @return A string indicating whether all the required ingredients can be prepared.
 *         "Ingredients are sufficient" if all ingredients can be prepared, otherwise "Insufficient ingredients".
 *
 * Example:
 * prepareIngredients("flour sugar butter", listOf(2, 3, 1)) => "Ingredients are sufficient"
 * prepareIngredients("chocolate milk eggs", listOf(4, 2, 1)) => "Insufficient ingredients"
 */
fun prepareIngredients(recipeIngredients: String, ingredientQuantity: List<Int>): String {

    // Split the recipe ingredients string into a list of required ingredients
    val requiredIngredients = recipeIngredients.split(" ")

    // Check if the length of required ingredients is greater than the list length
    if (requiredIngredients.size > ingredientQuantity.size) {
        return "Insufficient ingredients"
    }

    // Iterate over each required ingredient and corresponding available quantity
    // Add your implementation here

    return "" // Placeholder return, add your implementation
}