/**
 * Create a nested tuple of values from a range using nested loops
 *
 * @param start The starting value of the range
 * @param end The ending value of the range
 * @param outerIterations The number of iterations for the outer loop
 * @param innerIterations The number of iterations for the inner loop
 * @return A nested tuple containing the range values
 */
fun createNestedTuple(start: Int, end: Int, outerIterations: Int, innerIterations: Int): List<List<Int>> {

    val result = mutableListOf<List<Int>>()
    for (i in 0 until outerIterations) {
        val innerTuple = mutableListOf<Int>()
        for (j in 0 until innerIterations) {
            val value = start + i * innerIterations + j
            innerTuple.add(value)
        }
        result.add(innerTuple)
    }
    return result
}
/**
 * Create a nested tuple of values from a range using nested loops
 *
 * @param start The starting value of the range
 * @param end The ending value of the range
 * @param outerIterations The number of iterations for the outer loop
 * @param innerIterations The number of iterations for the inner loop
 * @return A nested tuple containing the range values
 */
fun createNestedTuple(start: Int, end: Int, outerIterations: Int, innerIterations: Int): List<List<Int>> {
/**
 * Create a nested tuple of values from a range using nested loops
 *
 * @param start The starting value of the range
 * @param end The ending value of the range
 * @param outerIterations The number of iterations for the outer loop
 * @param innerIterations The number of iterations for the inner loop
 * @return A nested tuple containing the range values
 */
fun createNestedTuple(start: Int, end: Int, outerIterations: Int, innerIterations: Int): List<List<Int>> {

    val result = mutableListOf<List<Int>>()
    for (i in 0 until outerIterations) {
        val innerTuple = mutableListOf<Int>()
        for (j in 0 until innerIterations) {
            val value = start + i * innerIterations + j
            innerTuple.add(value)
        }
        result.add(innerTuple)
    }
    return result
}