/**
 * Given a list of fashion styles, modify the elements in the specified range by adding a specific prefix.
 * Iterate over the range (inclusive of both rangeStart and rangeEnd) and replace the styles at those indices
 * by adding a prefix 'new_' to each of them.
 *
 * @param fashionList A list of fashion styles.
 * @param rangeStart The starting index of the range to iterate over.
 * @param rangeEnd The ending index of the range to iterate over.
 * @return The modified fashion list with prefixes added to the specified range.
 *
 * Example:
 * val fashionStyle = mutableListOf("casual", "formal", "bohemian", "elegant", "vintage")
 * val modifiedStyles = modifyStyles(fashionStyle, 1, 3)
 * println(modifiedStyles)
 * Output: ['casual', 'new_formal', 'new_bohemian', 'new_elegant', 'vintage']
 */
fun modifyStyles(fashionList: MutableList<String>, rangeStart: Int, rangeEnd: Int): List<String> {

    for (i in rangeStart..rangeEnd) {
        fashionList[i] = "new_" + fashionList[i]
    }
    return fashionList
}
/**
 * Given a list of fashion styles, modify the elements in the specified range by adding a specific prefix.
 * Iterate over the range (inclusive of both rangeStart and rangeEnd) and replace the styles at those indices
 * by adding a prefix 'new_' to each of them.
 *
 * @param fashionList A list of fashion styles.
 * @param rangeStart The starting index of the range to iterate over.
 * @param rangeEnd The ending index of the range to iterate over.
 * @return The modified fashion list with prefixes added to the specified range.
 *
 * Example:
 * val fashionStyle = mutableListOf("casual", "formal", "bohemian", "elegant", "vintage")
 * val modifiedStyles = modifyStyles(fashionStyle, 1, 3)
 * println(modifiedStyles)
 * Output: ['casual', 'new_formal', 'new_bohemian', 'new_elegant', 'vintage']
 */
fun modifyStyles(fashionList: MutableList<String>, rangeStart: Int, rangeEnd: Int): List<String> {
/**
 * Given a list of fashion styles, modify the elements in the specified range by adding a specific prefix.
 * Iterate over the range (inclusive of both rangeStart and rangeEnd) and replace the styles at those indices
 * by adding a prefix 'new_' to each of them.
 *
 * @param fashionList A list of fashion styles.
 * @param rangeStart The starting index of the range to iterate over.
 * @param rangeEnd The ending index of the range to iterate over.
 * @return The modified fashion list with prefixes added to the specified range.
 *
 * Example:
 * val fashionStyle = mutableListOf("casual", "formal", "bohemian", "elegant", "vintage")
 * val modifiedStyles = modifyStyles(fashionStyle, 1, 3)
 * println(modifiedStyles)
 * Output: ['casual', 'new_formal', 'new_bohemian', 'new_elegant', 'vintage']
 */
fun modifyStyles(fashionList: MutableList<String>, rangeStart: Int, rangeEnd: Int): List<String> {

    for (i in rangeStart..rangeEnd) {
        fashionList[i] = "new_" + fashionList[i]
    }
    return fashionList
}