/**
 * This function returns a list of coordinates for a grid of dimensions dimX x dimY.
 * Each coordinate is represented as a Pair(x, y).
 *
 * @param dimX an integer representing the number of columns in the grid
 * @param dimY an integer representing the number of rows in the grid
 * @return a list of coordinates [(x1, y1), (x2, y2), ...]
 */
fun createListOfCoordinates(dimX: Int, dimY: Int): List<Pair<Int, Int>> {

    val coordinates = mutableListOf<Pair<Int, Int>>()

    // Complete the nested for loops to generate coordinates.
    // Each coordinate should have values from 1 to dimX for x, and from 1 to dimY for y.
    for (x in 1..dimX) {
        for (y in 1..dimY) {
            coordinates.add(Pair(x, y))
        }
    }

    return coordinates
}
/**
 * This function returns a list of coordinates for a grid of dimensions dimX x dimY.
 * Each coordinate is represented as a Pair(x, y).
 *
 * @param dimX an integer representing the number of columns in the grid
 * @param dimY an integer representing the number of rows in the grid
 * @return a list of coordinates [(x1, y1), (x2, y2), ...]
 */
fun createListOfCoordinates(dimX: Int, dimY: Int): List<Pair<Int, Int>> {
/**
 * This function returns a list of coordinates for a grid of dimensions dimX x dimY.
 * Each coordinate is represented as a Pair(x, y).
 *
 * @param dimX an integer representing the number of columns in the grid
 * @param dimY an integer representing the number of rows in the grid
 * @return a list of coordinates [(x1, y1), (x2, y2), ...]
 */
fun createListOfCoordinates(dimX: Int, dimY: Int): List<Pair<Int, Int>> {

    val coordinates = mutableListOf<Pair<Int, Int>>()

    // Complete the nested for loops to generate coordinates.
    // Each coordinate should have values from 1 to dimX for x, and from 1 to dimY for y.
    for (x in 1..dimX) {
        for (y in 1..dimY) {
            coordinates.add(Pair(x, y))
        }
    }

    return coordinates
}