/**
 * In this exercise, you need to implement a function that accesses specific elements in a given list.
 *
 * @param lst A list of integers
 * @return A list containing the elements in the original list at the indices specified by another list of indices.
 *
 * Example:
 * accessListElements(listOf(10, 20, 30, 40, 50), listOf(0, 2, 4))
 * Output: [10, 30, 50]
 */
fun accessListElements(lst: List<Int>, indices: List<Int>): List<Int> {

    return indices.map { lst[it] }
}
/**
 * In this exercise, you need to implement a function that accesses specific elements in a given list.
 *
 * @param lst A list of integers
 * @return A list containing the elements in the original list at the indices specified by another list of indices.
 *
 * Example:
 * accessListElements(listOf(10, 20, 30, 40, 50), listOf(0, 2, 4))
 * Output: [10, 30, 50]
 */
fun accessListElements(lst: List<Int>, indices: List<Int>): List<Int> {
/**
 * In this exercise, you need to implement a function that accesses specific elements in a given list.
 *
 * @param lst A list of integers
 * @return A list containing the elements in the original list at the indices specified by another list of indices.
 *
 * Example:
 * accessListElements(listOf(10, 20, 30, 40, 50), listOf(0, 2, 4))
 * Output: [10, 30, 50]
 */
fun accessListElements(lst: List<Int>, indices: List<Int>): List<Int> {

    return indices.map { lst[it] }
}