/**
 * Shifts all elements in the list n positions to the left.
 *
 * @param lst The input list of integers.
 * @param n The number of positions to shift to the left.
 * @return The modified list after shifting all elements n positions to the left.
 */
fun shiftElementsLeft(lst: List<Int>, n: Int): List<Int> {

    // Perform left shift operation using list slicing
    return lst.subList(n, lst.size) + lst.subList(0, n)
}
/**
 * Shifts all elements in the list n positions to the left.
 *
 * @param lst The input list of integers.
 * @param n The number of positions to shift to the left.
 * @return The modified list after shifting all elements n positions to the left.
 */
fun shiftElementsLeft(lst: List<Int>, n: Int): List<Int> {
/**
 * Shifts all elements in the list n positions to the left.
 *
 * @param lst The input list of integers.
 * @param n The number of positions to shift to the left.
 * @return The modified list after shifting all elements n positions to the left.
 */
fun shiftElementsLeft(lst: List<Int>, n: Int): List<Int> {

    // Perform left shift operation using list slicing
    return lst.subList(n, lst.size) + lst.subList(0, n)
}