/**
 * Calculates the total discount for a fashion designer based on the number of items and discount percentage.
 *
 * @param numOfItems integer representing the number of items purchased
 * @param discountPercentage integer representing the discount percentage applied
 * @return totalDiscount integer representing the total discount applied on the items
 */
fun calculateDiscount(numOfItems: Int, discountPercentage: Int): Int {

    var totalDiscount = 0

    for (i in -1 downTo -numOfItems) {
        for (j in -1 downTo discountPercentage) {
            totalDiscount += i * j
        }
    }

    return totalDiscount
}
/**
 * Calculates the total discount for a fashion designer based on the number of items and discount percentage.
 *
 * @param numOfItems integer representing the number of items purchased
 * @param discountPercentage integer representing the discount percentage applied
 * @return totalDiscount integer representing the total discount applied on the items
 */
fun calculateDiscount(numOfItems: Int, discountPercentage: Int): Int {
/**
 * Calculates the total discount for a fashion designer based on the number of items and discount percentage.
 *
 * @param numOfItems integer representing the number of items purchased
 * @param discountPercentage integer representing the discount percentage applied
 * @return totalDiscount integer representing the total discount applied on the items
 */
fun calculateDiscount(numOfItems: Int, discountPercentage: Int): Int {

    var totalDiscount = 0

    for (i in -1 downTo -numOfItems) {
        for (j in -1 downTo discountPercentage) {
            totalDiscount += i * j
        }
    }

    return totalDiscount
}