/**
 * The Farmer wants to calculate the profit from his sales and expenses.
 * The sales and expenses are given in the form of a list of integers.
 * However, the list of sales can contain negative values.
 * The profit is calculated by subtracting the total expenses from the total sales.
 * Return the profit as the output.
 */
fun calculateProfit(sales: List<Int>, expenses: List<Int>): Int {

    // Calculate total sales by summing all the values in the sales list
    val totalSales = sales.sum()

    // Calculate total expenses by summing all the values in the expenses list
    val totalExpenses = expenses.sum()

    // Calculate the profit by subtracting total expenses from total sales
    val profit = totalSales - totalExpenses

    return profit
}
/**
 * The Farmer wants to calculate the profit from his sales and expenses.
 * The sales and expenses are given in the form of a list of integers.
 * However, the list of sales can contain negative values.
 * The profit is calculated by subtracting the total expenses from the total sales.
 * Return the profit as the output.
 */
fun calculateProfit(sales: List<Int>, expenses: List<Int>): Int {
/**
 * The Farmer wants to calculate the profit from his sales and expenses.
 * The sales and expenses are given in the form of a list of integers.
 * However, the list of sales can contain negative values.
 * The profit is calculated by subtracting the total expenses from the total sales.
 * Return the profit as the output.
 */
fun calculateProfit(sales: List<Int>, expenses: List<Int>): Int {

    // Calculate total sales by summing all the values in the sales list
    val totalSales = sales.sum()

    // Calculate total expenses by summing all the values in the expenses list
    val totalExpenses = expenses.sum()

    // Calculate the profit by subtracting total expenses from total sales
    val profit = totalSales - totalExpenses

    return profit
}