/**
 * This exercise focuses on accessing elements using nested indexing and tuple unpacking.
 *
 * Instructions:
 * - Complete the function to extract specific elements using nested indexing and tuple unpacking.
 * - The function should return the extracted elements as a Pair.
 *
 * @param data A nested list representing historical events.
 * @return A Pair containing the extracted elements.
 *
 * Example:
 * val data = listOf(listOf("Event 1", "Description 1"), listOf("Event 2", "Description 2"), listOf("Event 3", "Description 3"))
 * accessingNestedIndexAndTupleUnpacking(data)
 * Output: Pair("Event 1", "Description 3")
 */
fun accessingNestedIndexAndTupleUnpacking(data: List<List<String>>): Pair<String, String> {

    // Accessing elements with nested index and tuple unpacking
    val event = data[0][0]
    val description = data.last()[1]

    return Pair(event, description)
}
/**
 * This exercise focuses on accessing elements using nested indexing and tuple unpacking.
 *
 * Instructions:
 * - Complete the function to extract specific elements using nested indexing and tuple unpacking.
 * - The function should return the extracted elements as a Pair.
 *
 * @param data A nested list representing historical events.
 * @return A Pair containing the extracted elements.
 *
 * Example:
 * val data = listOf(listOf("Event 1", "Description 1"), listOf("Event 2", "Description 2"), listOf("Event 3", "Description 3"))
 * accessingNestedIndexAndTupleUnpacking(data)
 * Output: Pair("Event 1", "Description 3")
 */
fun accessingNestedIndexAndTupleUnpacking(data: List<List<String>>): Pair<String, String> {
/**
 * This exercise focuses on accessing elements using nested indexing and tuple unpacking.
 *
 * Instructions:
 * - Complete the function to extract specific elements using nested indexing and tuple unpacking.
 * - The function should return the extracted elements as a Pair.
 *
 * @param data A nested list representing historical events.
 * @return A Pair containing the extracted elements.
 *
 * Example:
 * val data = listOf(listOf("Event 1", "Description 1"), listOf("Event 2", "Description 2"), listOf("Event 3", "Description 3"))
 * accessingNestedIndexAndTupleUnpacking(data)
 * Output: Pair("Event 1", "Description 3")
 */
fun accessingNestedIndexAndTupleUnpacking(data: List<List<String>>): Pair<String, String> {

    // Accessing elements with nested index and tuple unpacking
    val event = data[0][0]
    val description = data.last()[1]

    return Pair(event, description)
}