/**
 * This exercise requires concatenating strings using the tuple
 * and parentheses syntax.
 *
 * Given a list of strings and a tuple of words, the goal is to
 * create a new string by concatenating each word in the tuple
 * with every string in the list using parentheses to create tuples.
 *
 * Example:
 * joinTextWithTuple(listOf("Hello", "World"), listOf("from", "the", "other side"))
 * Output: ["Hello from", "Hello the", "Hello other side", "World from", "World the", "World other side"]
 *
 * @param strings A list of strings.
 * @param args A list of words.
 * @return A list of new strings resulting from concatenation.
 */
fun joinTextWithTuple(strings: List<String>, args: List<String>): List<String> {

    val result = mutableListOf<String>()
    for (string in strings) {
        for (word in args) {
            val newString = "$string $word"
            result.add(newString)
        }
    }
    return result
}
/**
 * This exercise requires concatenating strings using the tuple
 * and parentheses syntax.
 *
 * Given a list of strings and a tuple of words, the goal is to
 * create a new string by concatenating each word in the tuple
 * with every string in the list using parentheses to create tuples.
 *
 * Example:
 * joinTextWithTuple(listOf("Hello", "World"), listOf("from", "the", "other side"))
 * Output: ["Hello from", "Hello the", "Hello other side", "World from", "World the", "World other side"]
 *
 * @param strings A list of strings.
 * @param args A list of words.
 * @return A list of new strings resulting from concatenation.
 */
fun joinTextWithTuple(strings: List<String>, args: List<String>): List<String> {
/**
 * This exercise requires concatenating strings using the tuple
 * and parentheses syntax.
 *
 * Given a list of strings and a tuple of words, the goal is to
 * create a new string by concatenating each word in the tuple
 * with every string in the list using parentheses to create tuples.
 *
 * Example:
 * joinTextWithTuple(listOf("Hello", "World"), listOf("from", "the", "other side"))
 * Output: ["Hello from", "Hello the", "Hello other side", "World from", "World the", "World other side"]
 *
 * @param strings A list of strings.
 * @param args A list of words.
 * @return A list of new strings resulting from concatenation.
 */
fun joinTextWithTuple(strings: List<String>, args: List<String>): List<String> {

    val result = mutableListOf<String>()
    for (string in strings) {
        for (word in args) {
            val newString = "$string $word"
            result.add(newString)
        }
    }
    return result
}