/**
 * Given a list of integers 'lst', modify its elements by multiplying them with 'value'.
 * The modified list should have the same length and order as the original list.
 *
 * Example:
 * modifyList(listOf(1, 2, 3, 4), 2) -> [2, 4, 6, 8]
 *
 * @param lst A list of integers.
 * @param value An integer representing the value to multiply each element by.
 */
fun modifyList(lst: MutableList<Int>, value: Int) {

    for (i in lst.indices) {
        lst[i] *= value
    }
}
/**
 * Given a list of integers 'lst', modify its elements by multiplying them with 'value'.
 * The modified list should have the same length and order as the original list.
 *
 * Example:
 * modifyList(listOf(1, 2, 3, 4), 2) -> [2, 4, 6, 8]
 *
 * @param lst A list of integers.
 * @param value An integer representing the value to multiply each element by.
 */
fun modifyList(lst: MutableList<Int>, value: Int) {
/**
 * Given a list of integers 'lst', modify its elements by multiplying them with 'value'.
 * The modified list should have the same length and order as the original list.
 *
 * Example:
 * modifyList(listOf(1, 2, 3, 4), 2) -> [2, 4, 6, 8]
 *
 * @param lst A list of integers.
 * @param value An integer representing the value to multiply each element by.
 */
fun modifyList(lst: MutableList<Int>, value: Int) {

    for (i in lst.indices) {
        lst[i] *= value
    }
}