/**
 * This function takes a start and stop value, and returns a list
 * containing only the numbers between the start and stop that are either
 * divisible by value or contain the value in their digits.
 *
 * @param start the starting value of the range
 * @param stop the ending value of the range
 * @param value the comparison value
 * @return A list containing the numbers that satisfy the condition.
 *
 * Example:
 * createTupleFromRangeOrOperator(1, 20, 3) => listOf(3, 6, 9, 10, 12, 13, 15, 18)
 */
fun createTupleFromRangeOrOperator(start: Int, stop: Int, value: Int): List<Int> {

    val result = mutableListOf<Int>()

    for (num in start..stop) {
        if (num % value == 0 || value.toString() in num.toString()) {
            result.add(num)
        }
    }

    return result
}
/**
 * This function takes a start and stop value, and returns a list
 * containing only the numbers between the start and stop that are either
 * divisible by value or contain the value in their digits.
 *
 * @param start the starting value of the range
 * @param stop the ending value of the range
 * @param value the comparison value
 * @return A list containing the numbers that satisfy the condition.
 *
 * Example:
 * createTupleFromRangeOrOperator(1, 20, 3) => listOf(3, 6, 9, 10, 12, 13, 15, 18)
 */
fun createTupleFromRangeOrOperator(start: Int, stop: Int, value: Int): List<Int> {
/**
 * This function takes a start and stop value, and returns a list
 * containing only the numbers between the start and stop that are either
 * divisible by value or contain the value in their digits.
 *
 * @param start the starting value of the range
 * @param stop the ending value of the range
 * @param value the comparison value
 * @return A list containing the numbers that satisfy the condition.
 *
 * Example:
 * createTupleFromRangeOrOperator(1, 20, 3) => listOf(3, 6, 9, 10, 12, 13, 15, 18)
 */
fun createTupleFromRangeOrOperator(start: Int, stop: Int, value: Int): List<Int> {

    val result = mutableListOf<Int>()

    for (num in start..stop) {
        if (num % value == 0 || value.toString() in num.toString()) {
            result.add(num)
        }
    }

    return result
}