/**
 * Given a string, appends a specified number of characters to it and iterates over each character.
 *
 * @param string The original string.
 * @param count The number of characters to append.
 */
fun appendCharacters(string: String, count: Int) {

    // Append new characters to the string
    val appendedString = string + "#".repeat(count)

    // Iterate over each character in the appended string
    for (char in appendedString) {
        println(char)
    }
}
/**
 * Given a string, appends a specified number of characters to it and iterates over each character.
 *
 * @param string The original string.
 * @param count The number of characters to append.
 */
fun appendCharacters(string: String, count: Int) {
/**
 * Given a string, appends a specified number of characters to it and iterates over each character.
 *
 * @param string The original string.
 * @param count The number of characters to append.
 */
fun appendCharacters(string: String, count: Int) {

    // Append new characters to the string
    val appendedString = string + "#".repeat(count)

    // Iterate over each character in the appended string
    for (char in appendedString) {
        println(char)
    }
}