/**
 * Given a string 'word' and an integer n, write a function that multiplies the string 'word' by n using the multiplication assignment operator.
 *
 * @param word Input string.
 * @param n Number of times the string will be multiplied.
 * @return The resulting string obtained after multiplying 'word' by n.
 *
 * Example:
 * Input:
 * word = "Hello"
 * n = 3
 * Output:
 * "HelloHelloHello"
 */
fun multiplyStrings(word: String, n: Int): String {

    var result = ""

    var count = n
    while (count > 0) {
        result += word
        count--
    }

    return result
}
/**
 * Given a string 'word' and an integer n, write a function that multiplies the string 'word' by n using the multiplication assignment operator.
 *
 * @param word Input string.
 * @param n Number of times the string will be multiplied.
 * @return The resulting string obtained after multiplying 'word' by n.
 *
 * Example:
 * Input:
 * word = "Hello"
 * n = 3
 * Output:
 * "HelloHelloHello"
 */
fun multiplyStrings(word: String, n: Int): String {
/**
 * Given a string 'word' and an integer n, write a function that multiplies the string 'word' by n using the multiplication assignment operator.
 *
 * @param word Input string.
 * @param n Number of times the string will be multiplied.
 * @return The resulting string obtained after multiplying 'word' by n.
 *
 * Example:
 * Input:
 * word = "Hello"
 * n = 3
 * Output:
 * "HelloHelloHello"
 */
fun multiplyStrings(word: String, n: Int): String {

    var result = ""

    var count = n
    while (count > 0) {
        result += word
        count--
    }

    return result
}