/**
 * You are an archaeologist looking for treasure in a grid. Each cell of the grid represents a specific terrain type.
 * Your task is to find the treasure, which is located at a specific terrain type. The grid is represented as a list of lists,
 * where each inner list represents a row of the grid. Your goal is to iterate through each row and each column of the grid
 * to find the exact location of the treasure. Use nested for loops and if-else statements to complete this task.
 *
 * @param grid A list of lists representing the grid. Each inner list represents a row of the grid.
 * @return The coordinates (row, col) of the treasure in the grid.
 */
fun archaeologistTreasureHunt(grid: List<List<String>>): Pair<Int, Int>? {

    var treasureLocation: Pair<Int, Int>? = null

    for (row in grid.indices) {
        for (col in grid[row].indices) {
            when (grid[row][col]) {
                "mountain" -> println("Found a mountain at coordinates ($row, $col)")
                "forest" -> println("Found a forest at coordinates ($row, $col)")
                "ocean" -> println("Found an ocean at coordinates ($row, $col)")
                // Add more cases for other terrain types if needed
            }
        }
    }

    return treasureLocation
}
/**
 * You are an archaeologist looking for treasure in a grid. Each cell of the grid represents a specific terrain type.
 * Your task is to find the treasure, which is located at a specific terrain type. The grid is represented as a list of lists,
 * where each inner list represents a row of the grid. Your goal is to iterate through each row and each column of the grid
 * to find the exact location of the treasure. Use nested for loops and if-else statements to complete this task.
 *
 * @param grid A list of lists representing the grid. Each inner list represents a row of the grid.
 * @return The coordinates (row, col) of the treasure in the grid.
 */
fun archaeologistTreasureHunt(grid: List<List<String>>): Pair<Int, Int>? {
/**
 * You are an archaeologist looking for treasure in a grid. Each cell of the grid represents a specific terrain type.
 * Your task is to find the treasure, which is located at a specific terrain type. The grid is represented as a list of lists,
 * where each inner list represents a row of the grid. Your goal is to iterate through each row and each column of the grid
 * to find the exact location of the treasure. Use nested for loops and if-else statements to complete this task.
 *
 * @param grid A list of lists representing the grid. Each inner list represents a row of the grid.
 * @return The coordinates (row, col) of the treasure in the grid.
 */
fun archaeologistTreasureHunt(grid: List<List<String>>): Pair<Int, Int>? {

    var treasureLocation: Pair<Int, Int>? = null

    for (row in grid.indices) {
        for (col in grid[row].indices) {
            when (grid[row][col]) {
                "mountain" -> println("Found a mountain at coordinates ($row, $col)")
                "forest" -> println("Found a forest at coordinates ($row, $col)")
                "ocean" -> println("Found an ocean at coordinates ($row, $col)")
                // Add more cases for other terrain types if needed
            }
        }
    }

    return treasureLocation
}