/**
 * The exercise requires creating a range of numbers from the start parameter to the stop parameter, inclusive.
 * It also requires that the range only includes numbers greater than or equal to 10. The function should return
 * a list containing the range satisfying these conditions.
 *
 * @param start The starting number of the range.
 * @param stop The ending number of the range.
 * @return A list containing the range of numbers greater than or equal to 10.
 *
 * Example:
 * createRangeWithStartAndStop(5, 15) -> [10, 11, 12, 13, 14, 15]
 * createRangeWithStartAndStop(8, 12) -> [10, 11, 12]
 */
fun createRangeWithStartAndStop(start: Int, stop: Int): List<Int> {

    // Check if start is less than 10
    var currentStart = if (start < 10) 10 else start

    // Check if stop is less than 10
    if (stop < 10) {
        return emptyList()
    }

    // Initialize an empty list
    val result = mutableListOf<Int>()

    // Compute the range using a loop
    for (num in currentStart..stop) {
        result.add(num)
    }

    return result
}
/**
 * The exercise requires creating a range of numbers from the start parameter to the stop parameter, inclusive.
 * It also requires that the range only includes numbers greater than or equal to 10. The function should return
 * a list containing the range satisfying these conditions.
 *
 * @param start The starting number of the range.
 * @param stop The ending number of the range.
 * @return A list containing the range of numbers greater than or equal to 10.
 *
 * Example:
 * createRangeWithStartAndStop(5, 15) -> [10, 11, 12, 13, 14, 15]
 * createRangeWithStartAndStop(8, 12) -> [10, 11, 12]
 */
fun createRangeWithStartAndStop(start: Int, stop: Int): List<Int> {
/**
 * The exercise requires creating a range of numbers from the start parameter to the stop parameter, inclusive.
 * It also requires that the range only includes numbers greater than or equal to 10. The function should return
 * a list containing the range satisfying these conditions.
 *
 * @param start The starting number of the range.
 * @param stop The ending number of the range.
 * @return A list containing the range of numbers greater than or equal to 10.
 *
 * Example:
 * createRangeWithStartAndStop(5, 15) -> [10, 11, 12, 13, 14, 15]
 * createRangeWithStartAndStop(8, 12) -> [10, 11, 12]
 */
fun createRangeWithStartAndStop(start: Int, stop: Int): List<Int> {

    // Check if start is less than 10
    var currentStart = if (start < 10) 10 else start

    // Check if stop is less than 10
    if (stop < 10) {
        return emptyList()
    }

    // Initialize an empty list
    val result = mutableListOf<Int>()

    // Compute the range using a loop
    for (num in currentStart..stop) {
        result.add(num)
    }

    return result
}