/**
 * Given a fashion statement and a number of times to repeat it, create a new string
 * by repeating each word in the statement a certain number of times and
 * concatenating them together.
 *
 * Example:
 * createFashionStatement("I love fashion", 2) should return "II loovee faashiion"
 *
 * @param statement The original fashion statement.
 * @param count The number of times each word in the statement should be repeated.
 * @return The new fashion statement with each word repeated a certain number of times.
 */
fun createFashionStatement(statement: String, count: Int): String {

    var newStatement = ""
    var index = 0
    while (index < statement.length) {
        var word = ""
        while (index < statement.length && statement[index] != ' ') {
            word += statement[index].toString().repeat(count)  // Repeat each character twice
            index++
        }
        newStatement += word + " "
        index++
    }
    return newStatement.trim()
}
/**
 * Given a fashion statement and a number of times to repeat it, create a new string
 * by repeating each word in the statement a certain number of times and
 * concatenating them together.
 *
 * Example:
 * createFashionStatement("I love fashion", 2) should return "II loovee faashiion"
 *
 * @param statement The original fashion statement.
 * @param count The number of times each word in the statement should be repeated.
 * @return The new fashion statement with each word repeated a certain number of times.
 */
fun createFashionStatement(statement: String, count: Int): String {
/**
 * Given a fashion statement and a number of times to repeat it, create a new string
 * by repeating each word in the statement a certain number of times and
 * concatenating them together.
 *
 * Example:
 * createFashionStatement("I love fashion", 2) should return "II loovee faashiion"
 *
 * @param statement The original fashion statement.
 * @param count The number of times each word in the statement should be repeated.
 * @return The new fashion statement with each word repeated a certain number of times.
 */
fun createFashionStatement(statement: String, count: Int): String {

    var newStatement = ""
    var index = 0
    while (index < statement.length) {
        var word = ""
        while (index < statement.length && statement[index] != ' ') {
            word += statement[index].toString().repeat(count)  // Repeat each character twice
            index++
        }
        newStatement += word + " "
        index++
    }
    return newStatement.trim()
}