/**
 * Given two sets of sales and expenses, calculate the net profit.
 *
 * @param sales A set of integer values representing sales
 * @param expenses A set of integer values representing expenses
 * @return net_profit A float value representing the net profit (sales - expenses)
 */
fun calculateNetProfit(sales: Set<Int>, expenses: Set<Int>): Float {

    var netProfit = 0f

    // Loop through the sales set
    for (sale in sales) {
        // Loop through the expenses set
        for (expense in expenses) {
            // If the sale is greater than the expense,
            // add the difference to the net profit
            if (sale > expense) {
                netProfit += (sale - expense).toFloat()
            }
        }
    }

    return netProfit
}
/**
 * Given two sets of sales and expenses, calculate the net profit.
 *
 * @param sales A set of integer values representing sales
 * @param expenses A set of integer values representing expenses
 * @return net_profit A float value representing the net profit (sales - expenses)
 */
fun calculateNetProfit(sales: Set<Int>, expenses: Set<Int>): Float {
/**
 * Given two sets of sales and expenses, calculate the net profit.
 *
 * @param sales A set of integer values representing sales
 * @param expenses A set of integer values representing expenses
 * @return net_profit A float value representing the net profit (sales - expenses)
 */
fun calculateNetProfit(sales: Set<Int>, expenses: Set<Int>): Float {

    var netProfit = 0f

    // Loop through the sales set
    for (sale in sales) {
        // Loop through the expenses set
        for (expense in expenses) {
            // If the sale is greater than the expense,
            // add the difference to the net profit
            if (sale > expense) {
                netProfit += (sale - expense).toFloat()
            }
        }
    }

    return netProfit
}