/**
 * This function takes in two integers n and m. It creates a set and adds elements to it using nested loops.
 *
 * @param n The number of outer loops.
 * @param m The number of inner loops.
 * @return The set with added elements.
 */
fun addElements(n: Int, m: Int): Set<String> {

    // Create an empty set
    val resultSet = mutableSetOf<String>()

    // Outer loop
    for (i in 0 until n) {
        // Inner loop
        for (j in 0 until m) {
            // Add the element to the set, consider using the counter variables i and j in some way
            resultSet.add("Element ${i + j + 1}")
        }
    }

    return resultSet
}
/**
 * This function takes in two integers n and m. It creates a set and adds elements to it using nested loops.
 *
 * @param n The number of outer loops.
 * @param m The number of inner loops.
 * @return The set with added elements.
 */
fun addElements(n: Int, m: Int): Set<String> {
/**
 * This function takes in two integers n and m. It creates a set and adds elements to it using nested loops.
 *
 * @param n The number of outer loops.
 * @param m The number of inner loops.
 * @return The set with added elements.
 */
fun addElements(n: Int, m: Int): Set<String> {

    // Create an empty set
    val resultSet = mutableSetOf<String>()

    // Outer loop
    for (i in 0 until n) {
        // Inner loop
        for (j in 0 until m) {
            // Add the element to the set, consider using the counter variables i and j in some way
            resultSet.add("Element ${i + j + 1}")
        }
    }

    return resultSet
}