/**
 * This exercise aims to test your understanding of the intersection between the enumerate function and the range function.
 * Your task is to complete the code to create a nested list that contains the index and the value of each element in the range.
 * The range should start at 'start' and stop at 'stop' (exclusive) with a step of 'step'.
 *
 * Example:
 * input: enumerateRange(0, 10, 2)
 * output: [[0, 0], [1, 2], [2, 4], [3, 6], [4, 8]]
 *
 * Note: The inner list [i, i * step] represents the index 'i' and the corresponding multiplied value 'i * step'.
 *
 * Your task is to complete the code inside the function, using both 'enumerate' and 'range' functions.
 */
fun enumerateRange(start: Int, stop: Int, step: Int): List<List<Int>> {

    val result = mutableListOf<List<Int>>()  // Stores the final nested list [index, value]

    // TODO: Complete the code

    return result
}
/**
 * This exercise aims to test your understanding of the intersection between the enumerate function and the range function.
 * Your task is to complete the code to create a nested list that contains the index and the value of each element in the range.
 * The range should start at 'start' and stop at 'stop' (exclusive) with a step of 'step'.
 *
 * Example:
 * input: enumerateRange(0, 10, 2)
 * output: [[0, 0], [1, 2], [2, 4], [3, 6], [4, 8]]
 *
 * Note: The inner list [i, i * step] represents the index 'i' and the corresponding multiplied value 'i * step'.
 *
 * Your task is to complete the code inside the function, using both 'enumerate' and 'range' functions.
 */
fun enumerateRange(start: Int, stop: Int, step: Int): List<List<Int>> {
/**
 * This exercise aims to test your understanding of the intersection between the enumerate function and the range function.
 * Your task is to complete the code to create a nested list that contains the index and the value of each element in the range.
 * The range should start at 'start' and stop at 'stop' (exclusive) with a step of 'step'.
 *
 * Example:
 * input: enumerateRange(0, 10, 2)
 * output: [[0, 0], [1, 2], [2, 4], [3, 6], [4, 8]]
 *
 * Note: The inner list [i, i * step] represents the index 'i' and the corresponding multiplied value 'i * step'.
 *
 * Your task is to complete the code inside the function, using both 'enumerate' and 'range' functions.
 */
fun enumerateRange(start: Int, stop: Int, step: Int): List<List<Int>> {

    val result = mutableListOf<List<Int>>()  // Stores the final nested list [index, value]

    // TODO: Complete the code

    return result
}