/**
 * Write a function that takes in a start and stop parameter and returns a list of case numbers in the given range.
 * Each case number should be in the format "<case type>-<number>".
 *
 * Example:
 * getCaseNumbers("CR", "TR", 100, 105) should return ['CR-100', 'CR-101', 'CR-102', 'CR-103', 'CR-104', 'CR-105', 'TR-100', 'TR-101', 'TR-102', 'TR-103', 'TR-104', 'TR-105']
 *
 * You can assume that the start and stop parameters will be strings consisting of uppercase letters only.
 *
 * Your solution should not use any built-in Kotlin range or list comprehension functions.
 */
fun getCaseNumbers(start: Int, stop: Int): List<String> {

    val caseNumbers = mutableListOf<String>()
    val caseTypes = listOf("CR", "TR")  // case types for Criminal and Traffic cases

    for (caseType in caseTypes) {
        for (num in start..stop) {
            caseNumbers.add("$caseType-$num")
        }
    }

    return caseNumbers
}
/**
 * Write a function that takes in a start and stop parameter and returns a list of case numbers in the given range.
 * Each case number should be in the format "<case type>-<number>".
 *
 * Example:
 * getCaseNumbers("CR", "TR", 100, 105) should return ['CR-100', 'CR-101', 'CR-102', 'CR-103', 'CR-104', 'CR-105', 'TR-100', 'TR-101', 'TR-102', 'TR-103', 'TR-104', 'TR-105']
 *
 * You can assume that the start and stop parameters will be strings consisting of uppercase letters only.
 *
 * Your solution should not use any built-in Kotlin range or list comprehension functions.
 */
fun getCaseNumbers(start: Int, stop: Int): List<String> {
/**
 * Write a function that takes in a start and stop parameter and returns a list of case numbers in the given range.
 * Each case number should be in the format "<case type>-<number>".
 *
 * Example:
 * getCaseNumbers("CR", "TR", 100, 105) should return ['CR-100', 'CR-101', 'CR-102', 'CR-103', 'CR-104', 'CR-105', 'TR-100', 'TR-101', 'TR-102', 'TR-103', 'TR-104', 'TR-105']
 *
 * You can assume that the start and stop parameters will be strings consisting of uppercase letters only.
 *
 * Your solution should not use any built-in Kotlin range or list comprehension functions.
 */
fun getCaseNumbers(start: Int, stop: Int): List<String> {

    val caseNumbers = mutableListOf<String>()
    val caseTypes = listOf("CR", "TR")  // case types for Criminal and Traffic cases

    for (caseType in caseTypes) {
        for (num in start..stop) {
            caseNumbers.add("$caseType-$num")
        }
    }

    return caseNumbers
}