/**
 * This function takes a list of tuples and concatenates the strings in each tuple.
 * It then returns a list containing the concatenated strings.
 *
 * @param tupleList A list of tuples, where each tuple contains strings.
 * @return A list of concatenated strings.
 *
 * Example:
 * concatenateStrings(listOf("Hello" to "World", "Kotlin" to "is", "awesome" to "language"))
 */
fun concatenateStrings(tupleList: List<Pair<String, String>>): List<String> {

    val result = mutableListOf<String>()

    for (tpl in tupleList) {
        var concatStr = ""
        for (string in tpl.toList()) {
            // Concatenate each string in the tuple
            concatStr += string
        }

        // Append the concatenated string to the result list
        result.add(concatStr)
    }

    return result
}
/**
 * This function takes a list of tuples and concatenates the strings in each tuple.
 * It then returns a list containing the concatenated strings.
 *
 * @param tupleList A list of tuples, where each tuple contains strings.
 * @return A list of concatenated strings.
 *
 * Example:
 * concatenateStrings(listOf("Hello" to "World", "Kotlin" to "is", "awesome" to "language"))
 */
fun concatenateStrings(tupleList: List<Pair<String, String>>): List<String> {
/**
 * This function takes a list of tuples and concatenates the strings in each tuple.
 * It then returns a list containing the concatenated strings.
 *
 * @param tupleList A list of tuples, where each tuple contains strings.
 * @return A list of concatenated strings.
 *
 * Example:
 * concatenateStrings(listOf("Hello" to "World", "Kotlin" to "is", "awesome" to "language"))
 */
fun concatenateStrings(tupleList: List<Pair<String, String>>): List<String> {

    val result = mutableListOf<String>()

    for (tpl in tupleList) {
        var concatStr = ""
        for (string in tpl.toList()) {
            // Concatenate each string in the tuple
            concatStr += string
        }

        // Append the concatenated string to the result list
        result.add(concatStr)
    }

    return result
}