/**
 * Convert a string into a tuple by splitting it based on a given delimiter.
 * If any character in the string is an uppercase letter, skip that element using the continue statement.
 *
 * @param string A string containing elements to be converted into a tuple
 * @param delimiter A string representing the delimiter for splitting the elements
 * @return A tuple containing the elements from the string after splitting
 *
 * Example:
 * convertStringToTuple("1,2,3,4,5,6", ",") // (1, 2, 3, 4, 5, 6)
 * convertStringToTuple("a,B,c,D,e,F", ",") // (1, 3, 5)
 */
fun convertStringToTuple(string: String, delimiter: String): List<Int> {

    val result = mutableListOf<Int>()
    for (element in string.split(delimiter)) {
        if (element.any { it.isUpperCase() }) {
            continue  // Skip element if it contains any uppercase letter
        }
        result.add(element.toInt())
    }
    return result
}
/**
 * Convert a string into a tuple by splitting it based on a given delimiter.
 * If any character in the string is an uppercase letter, skip that element using the continue statement.
 *
 * @param string A string containing elements to be converted into a tuple
 * @param delimiter A string representing the delimiter for splitting the elements
 * @return A tuple containing the elements from the string after splitting
 *
 * Example:
 * convertStringToTuple("1,2,3,4,5,6", ",") // (1, 2, 3, 4, 5, 6)
 * convertStringToTuple("a,B,c,D,e,F", ",") // (1, 3, 5)
 */
fun convertStringToTuple(string: String, delimiter: String): List<Int> {
/**
 * Convert a string into a tuple by splitting it based on a given delimiter.
 * If any character in the string is an uppercase letter, skip that element using the continue statement.
 *
 * @param string A string containing elements to be converted into a tuple
 * @param delimiter A string representing the delimiter for splitting the elements
 * @return A tuple containing the elements from the string after splitting
 *
 * Example:
 * convertStringToTuple("1,2,3,4,5,6", ",") // (1, 2, 3, 4, 5, 6)
 * convertStringToTuple("a,B,c,D,e,F", ",") // (1, 3, 5)
 */
fun convertStringToTuple(string: String, delimiter: String): List<Int> {

    val result = mutableListOf<Int>()
    for (element in string.split(delimiter)) {
        if (element.any { it.isUpperCase() }) {
            continue  // Skip element if it contains any uppercase letter
        }
        result.add(element.toInt())
    }
    return result
}