/**
 * This exercise requires implementing a function 'sumOfSquares' that computes the sum of the squares of numbers within a given range, using a step parameter to skip values.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The ending value of the range (exclusive).
 * @param step The step size or increment value.
 * @return The sum of the squares of the numbers within the given range.
 */
fun sumOfSquares(start: Int, stop: Int, step: Int): Int {

    var totalSum = 0
    
    for (i in start until stop step step) {
        val square = i * i
        totalSum += square
    }
    
    return totalSum
}
/**
 * This exercise requires implementing a function 'sumOfSquares' that computes the sum of the squares of numbers within a given range, using a step parameter to skip values.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The ending value of the range (exclusive).
 * @param step The step size or increment value.
 * @return The sum of the squares of the numbers within the given range.
 */
fun sumOfSquares(start: Int, stop: Int, step: Int): Int {
/**
 * This exercise requires implementing a function 'sumOfSquares' that computes the sum of the squares of numbers within a given range, using a step parameter to skip values.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The ending value of the range (exclusive).
 * @param step The step size or increment value.
 * @return The sum of the squares of the numbers within the given range.
 */
fun sumOfSquares(start: Int, stop: Int, step: Int): Int {

    var totalSum = 0
    
    for (i in start until stop step step) {
        val square = i * i
        totalSum += square
    }
    
    return totalSum
}