/**
 * This function takes a number 'n' and a limit as input and calculates the sum of all the multiples of 'n'
 * within the limit.
 */
fun sumOfMultiples(n: Int, limit: Int): Int {

    var sumOfMultiples = 0
    for (i in 1 until limit) {
        if (i % n == 0) {
            sumOfMultiples += i
        }
    }
    return sumOfMultiples
}
/**
 * This function takes a number 'n' and a limit as input and calculates the sum of all the multiples of 'n'
 * within the limit.
 */
fun sumOfMultiples(n: Int, limit: Int): Int {
/**
 * This function takes a number 'n' and a limit as input and calculates the sum of all the multiples of 'n'
 * within the limit.
 */
fun sumOfMultiples(n: Int, limit: Int): Int {

    var sumOfMultiples = 0
    for (i in 1 until limit) {
        if (i % n == 0) {
            sumOfMultiples += i
        }
    }
    return sumOfMultiples
}