/**
 * The farmer wants to calculate the total water usage for their crops based on a watering schedule.
 *
 * @param crops a list of crops present in the farm
 * @param wateringSchedule a dictionary with the water requirements per crop
 * @return The total water usage for all crops
 */
fun calculateWaterUsage(crops: List<String>, wateringSchedule: Map<String, Int>): Int {

    var totalWaterUsage = 0

    // Loop through each crop in the list
    for (crop in crops) {
        // Check if the crop is in the watering schedule
        if (crop in wateringSchedule) {
            // Get the water requirement for the crop
            val waterRequirement = wateringSchedule[crop]!!

            // Calculate the water usage for the crop
            val waterUsage = waterRequirement * crops.size

            // Add the water usage to the total water usage
            totalWaterUsage += waterUsage
        }
    }

    return totalWaterUsage
}
/**
 * The farmer wants to calculate the total water usage for their crops based on a watering schedule.
 *
 * @param crops a list of crops present in the farm
 * @param wateringSchedule a dictionary with the water requirements per crop
 * @return The total water usage for all crops
 */
fun calculateWaterUsage(crops: List<String>, wateringSchedule: Map<String, Int>): Int {
/**
 * The farmer wants to calculate the total water usage for their crops based on a watering schedule.
 *
 * @param crops a list of crops present in the farm
 * @param wateringSchedule a dictionary with the water requirements per crop
 * @return The total water usage for all crops
 */
fun calculateWaterUsage(crops: List<String>, wateringSchedule: Map<String, Int>): Int {

    var totalWaterUsage = 0

    // Loop through each crop in the list
    for (crop in crops) {
        // Check if the crop is in the watering schedule
        if (crop in wateringSchedule) {
            // Get the water requirement for the crop
            val waterRequirement = wateringSchedule[crop]!!

            // Calculate the water usage for the crop
            val waterUsage = waterRequirement * crops.size

            // Add the water usage to the total water usage
            totalWaterUsage += waterUsage
        }
    }

    return totalWaterUsage
}