/**
 * Create a list with the given number of initial elements, which are formed by multiplying the index value by a given number.
 *
 * @param elements The number of elements to create in the list.
 * @param num The value to multiply by for each element.
 * @return A list with the initial elements.
 *
 * Example:
 * createListWithInitialElements(5, 3) -> [0, 3, 6, 9, 12]
 */
fun createListWithInitialElements(elements: Int, num: Int): List<Int> {

    val result = MutableList(elements) { it * num }
    return result
}
/**
 * Create a list with the given number of initial elements, which are formed by multiplying the index value by a given number.
 *
 * @param elements The number of elements to create in the list.
 * @param num The value to multiply by for each element.
 * @return A list with the initial elements.
 *
 * Example:
 * createListWithInitialElements(5, 3) -> [0, 3, 6, 9, 12]
 */
fun createListWithInitialElements(elements: Int, num: Int): List<Int> {
/**
 * Create a list with the given number of initial elements, which are formed by multiplying the index value by a given number.
 *
 * @param elements The number of elements to create in the list.
 * @param num The value to multiply by for each element.
 * @return A list with the initial elements.
 *
 * Example:
 * createListWithInitialElements(5, 3) -> [0, 3, 6, 9, 12]
 */
fun createListWithInitialElements(elements: Int, num: Int): List<Int> {

    val result = MutableList(elements) { it * num }
    return result
}