/**
 * Given a list of strings and a separator, combine the strings using string concatenation and list comprehension.
 *
 * @param strings A list of strings.
 * @param separator The separator to be used between the strings.
 * @return The combined string with each element separated by the provided separator.
 *
 * Example:
 * Input:
 * combineStrings(listOf("Hello", "world", "I", "am", "Kotlin"), " ")
 *
 * Output:
 * "Hello world I am Kotlin"
 */
fun combineStrings(strings: List<String>, separator: String): String {

    val combinedString = strings.joinToString(separator)
    val result = combinedString.filter { it.isLetter() }.toUpperCase()
    return result
}
/**
 * Given a list of strings and a separator, combine the strings using string concatenation and list comprehension.
 *
 * @param strings A list of strings.
 * @param separator The separator to be used between the strings.
 * @return The combined string with each element separated by the provided separator.
 *
 * Example:
 * Input:
 * combineStrings(listOf("Hello", "world", "I", "am", "Kotlin"), " ")
 *
 * Output:
 * "Hello world I am Kotlin"
 */
fun combineStrings(strings: List<String>, separator: String): String {
/**
 * Given a list of strings and a separator, combine the strings using string concatenation and list comprehension.
 *
 * @param strings A list of strings.
 * @param separator The separator to be used between the strings.
 * @return The combined string with each element separated by the provided separator.
 *
 * Example:
 * Input:
 * combineStrings(listOf("Hello", "world", "I", "am", "Kotlin"), " ")
 *
 * Output:
 * "Hello world I am Kotlin"
 */
fun combineStrings(strings: List<String>, separator: String): String {

    val combinedString = strings.joinToString(separator)
    val result = combinedString.filter { it.isLetter() }.toUpperCase()
    return result
}