/**
 * This exercise focuses on accessing elements in a list and creating lists with initial elements.
 *
 * Given a list of account balances, this function takes an index and returns the account balance at that index.
 *
 * @param accountList A list containing the account balances
 * @param index An integer representing the index position
 * @return The account balance at the specified index
 *
 * Example:
 * For accountList = [100, 200, 300, 400, 500] and index = 2, the output will be 300
 */
fun accessingElements(accountList: List<Int>, index: Int): Int {

    // Accessing the element at the specified index and returning it
    return accountList[index]
}
/**
 * This exercise focuses on accessing elements in a list and creating lists with initial elements.
 *
 * Given a list of account balances, this function takes an index and returns the account balance at that index.
 *
 * @param accountList A list containing the account balances
 * @param index An integer representing the index position
 * @return The account balance at the specified index
 *
 * Example:
 * For accountList = [100, 200, 300, 400, 500] and index = 2, the output will be 300
 */
fun accessingElements(accountList: List<Int>, index: Int): Int {
/**
 * This exercise focuses on accessing elements in a list and creating lists with initial elements.
 *
 * Given a list of account balances, this function takes an index and returns the account balance at that index.
 *
 * @param accountList A list containing the account balances
 * @param index An integer representing the index position
 * @return The account balance at the specified index
 *
 * Example:
 * For accountList = [100, 200, 300, 400, 500] and index = 2, the output will be 300
 */
fun accessingElements(accountList: List<Int>, index: Int): Int {

    // Accessing the element at the specified index and returning it
    return accountList[index]
}