/**
 * The function takes in a treasure map represented by a nested list and coordinates as input.
 * Each list within the nested list represents a row in the map, and each character represents a specific location.
 * The coordinates provided represent the position in the map.
 *
 * Your task is to find the treasure hidden at the given coordinates and return its description.
 *
 * @param treasureMap A nested list representing the treasure map.
 * @param coordinates A pair representing the position of the treasure in the map.
 * @return The description of the treasure found at the given coordinates.
 */
fun findTreasure(treasureMap: List<List<String>>, coordinates: Pair<Int, Int>): String {

    val (row, col) = coordinates
    val treasure = treasureMap[row][col]

    // Add your code here to solve the exercise

    return treasure
}

// Sample test case
/**
 * The function takes in a treasure map represented by a nested list and coordinates as input.
 * Each list within the nested list represents a row in the map, and each character represents a specific location.
 * The coordinates provided represent the position in the map.
 *
 * Your task is to find the treasure hidden at the given coordinates and return its description.
 *
 * @param treasureMap A nested list representing the treasure map.
 * @param coordinates A pair representing the position of the treasure in the map.
 * @return The description of the treasure found at the given coordinates.
 */
fun findTreasure(treasureMap: List<List<String>>, coordinates: Pair<Int, Int>): String {
/**
 * The function takes in a treasure map represented by a nested list and coordinates as input.
 * Each list within the nested list represents a row in the map, and each character represents a specific location.
 * The coordinates provided represent the position in the map.
 *
 * Your task is to find the treasure hidden at the given coordinates and return its description.
 *
 * @param treasureMap A nested list representing the treasure map.
 * @param coordinates A pair representing the position of the treasure in the map.
 * @return The description of the treasure found at the given coordinates.
 */
fun findTreasure(treasureMap: List<List<String>>, coordinates: Pair<Int, Int>): String {

    val (row, col) = coordinates
    val treasure = treasureMap[row][col]

    // Add your code here to solve the exercise

    return treasure
}

// Sample test case