/**
 * Given a string and a delimiter, create a tuple with each element formed by splitting the string using the delimiter.
 *
 * @param string The input string to be split.
 * @param delimiter The delimiter to be used for splitting the string.
 * @return A tuple with elements formed by splitting the string using the delimiter.
 *
 * Example:
 * createTupleFromString("apple,banana,orange", ",") -> ('apple', 'banana', 'orange')
 */
fun createTupleFromString(string: String, delimiter: String): List<String> {

    // Solution code using map and trim
    return string.split(delimiter).map { it.trim() }
}
/**
 * Given a string and a delimiter, create a tuple with each element formed by splitting the string using the delimiter.
 *
 * @param string The input string to be split.
 * @param delimiter The delimiter to be used for splitting the string.
 * @return A tuple with elements formed by splitting the string using the delimiter.
 *
 * Example:
 * createTupleFromString("apple,banana,orange", ",") -> ('apple', 'banana', 'orange')
 */
fun createTupleFromString(string: String, delimiter: String): List<String> {
/**
 * Given a string and a delimiter, create a tuple with each element formed by splitting the string using the delimiter.
 *
 * @param string The input string to be split.
 * @param delimiter The delimiter to be used for splitting the string.
 * @return A tuple with elements formed by splitting the string using the delimiter.
 *
 * Example:
 * createTupleFromString("apple,banana,orange", ",") -> ('apple', 'banana', 'orange')
 */
fun createTupleFromString(string: String, delimiter: String): List<String> {

    // Solution code using map and trim
    return string.split(delimiter).map { it.trim() }
}