/**
 * This function takes a number as input and performs the following actions:
 * 1. If the number is even, it adds it to a set called 'evenSet'
 * 2. If the number is odd, it squares the number and adds it to a set called 'oddSet'
 * The function returns both the 'evenSet' and 'oddSet'.
 */
fun addToSetIfEvenOrElseSquare(number: Int): Pair<Set<Int>, Set<Int>> {

    val evenSet = mutableSetOf<Int>()
    val oddSet = mutableSetOf<Int>()

    // Check if the number is even or odd
    if (number % 2 == 0) {
        // Add the number to the evenSet
        evenSet.add(number)
    } else {
        // Square the number and add it to the oddSet
        oddSet.add(number * number)
    }

    return Pair(evenSet, oddSet)
}
/**
 * This function takes a number as input and performs the following actions:
 * 1. If the number is even, it adds it to a set called 'evenSet'
 * 2. If the number is odd, it squares the number and adds it to a set called 'oddSet'
 * The function returns both the 'evenSet' and 'oddSet'.
 */
fun addToSetIfEvenOrElseSquare(number: Int): Pair<Set<Int>, Set<Int>> {
/**
 * This function takes a number as input and performs the following actions:
 * 1. If the number is even, it adds it to a set called 'evenSet'
 * 2. If the number is odd, it squares the number and adds it to a set called 'oddSet'
 * The function returns both the 'evenSet' and 'oddSet'.
 */
fun addToSetIfEvenOrElseSquare(number: Int): Pair<Set<Int>, Set<Int>> {

    val evenSet = mutableSetOf<Int>()
    val oddSet = mutableSetOf<Int>()

    // Check if the number is even or odd
    if (number % 2 == 0) {
        // Add the number to the evenSet
        evenSet.add(number)
    } else {
        // Square the number and add it to the oddSet
        oddSet.add(number * number)
    }

    return Pair(evenSet, oddSet)
}