/**
 * You are an accountant and you need to find the missing expense from the report by comparing it with the receipts.
 * The report contains a string of expenses separated by commas. The receipts are also given as a string of expenses separated by commas.
 * Write a program that uses a for loop and conditional statements to find the missing expense from the report.
 *
 * Example:
 * findMissingExpense("salary, utilities, rent, office supplies", "salary, rent, office supplies")
 * Output: 'utilities'
 */
fun findMissingExpense(report: String, receipts: String): String {

    val reportExpenses = report.split(", ")
    val receiptExpenses = receipts.split(", ")

    for (expense in reportExpenses) {
        if (expense !in receiptExpenses) {
            return expense
        }
    }

    return "No missing expense"
}
/**
 * You are an accountant and you need to find the missing expense from the report by comparing it with the receipts.
 * The report contains a string of expenses separated by commas. The receipts are also given as a string of expenses separated by commas.
 * Write a program that uses a for loop and conditional statements to find the missing expense from the report.
 *
 * Example:
 * findMissingExpense("salary, utilities, rent, office supplies", "salary, rent, office supplies")
 * Output: 'utilities'
 */
fun findMissingExpense(report: String, receipts: String): String {
/**
 * You are an accountant and you need to find the missing expense from the report by comparing it with the receipts.
 * The report contains a string of expenses separated by commas. The receipts are also given as a string of expenses separated by commas.
 * Write a program that uses a for loop and conditional statements to find the missing expense from the report.
 *
 * Example:
 * findMissingExpense("salary, utilities, rent, office supplies", "salary, rent, office supplies")
 * Output: 'utilities'
 */
fun findMissingExpense(report: String, receipts: String): String {

    val reportExpenses = report.split(", ")
    val receiptExpenses = receipts.split(", ")

    for (expense in reportExpenses) {
        if (expense !in receiptExpenses) {
            return expense
        }
    }

    return "No missing expense"
}