/**
 * Given a prefix string, a range containing the starting and ending values for suffix integers,
 * and a range indicating the number of times each suffix should be repeated,
 * this function returns a list of license plate patterns.
 *
 * @param prefix A string representing the prefix to be used in each license plate pattern.
 * @param suffix A tuple containing two integers indicating the starting and ending values for the suffix.
 * @param repeat A range specifying how many times each suffix should be repeated.
 * @return A list of strings representing the license plate patterns.
 */
fun createLicensePlatePatterns(prefix: String, suffix: IntRange, repeat: IntProgression): List<String> {

    val patterns = mutableListOf<String>()
    for (num in suffix) {
        for (times in repeat) {
            val pattern = prefix + num.toString().repeat(times)
            patterns.add(pattern)
        }
    }
    return patterns
}
/**
 * Given a prefix string, a range containing the starting and ending values for suffix integers,
 * and a range indicating the number of times each suffix should be repeated,
 * this function returns a list of license plate patterns.
 *
 * @param prefix A string representing the prefix to be used in each license plate pattern.
 * @param suffix A tuple containing two integers indicating the starting and ending values for the suffix.
 * @param repeat A range specifying how many times each suffix should be repeated.
 * @return A list of strings representing the license plate patterns.
 */
fun createLicensePlatePatterns(prefix: String, suffix: IntRange, repeat: IntProgression): List<String> {
/**
 * Given a prefix string, a range containing the starting and ending values for suffix integers,
 * and a range indicating the number of times each suffix should be repeated,
 * this function returns a list of license plate patterns.
 *
 * @param prefix A string representing the prefix to be used in each license plate pattern.
 * @param suffix A tuple containing two integers indicating the starting and ending values for the suffix.
 * @param repeat A range specifying how many times each suffix should be repeated.
 * @return A list of strings representing the license plate patterns.
 */
fun createLicensePlatePatterns(prefix: String, suffix: IntRange, repeat: IntProgression): List<String> {

    val patterns = mutableListOf<String>()
    for (num in suffix) {
        for (times in repeat) {
            val pattern = prefix + num.toString().repeat(times)
            patterns.add(pattern)
        }
    }
    return patterns
}