/**
 * Given a string, create a tuple using each character in the string.
 * Then, slice the tuple from the start index to the end index (exclusive),
 * and return the sliced tuple.
 *
 * @param string The input string to create the tuple from.
 * @param startIndex The starting index of the slice.
 * @param endIndex The ending index of the slice (exclusive).
 * @return The sliced tuple.
 *
 * Example:
 * createTupleFromStringAndSlice("Hello World", 3, 8) -> ('l', 'o', ' ', 'W')
 */
fun createTupleFromStringAndSlice(string: String, startIndex: Int, endIndex: Int): List<Char> {

    // Create a list of characters from the string
    val charList = string.toList()

    // Slice the list from startIndex to endIndex (exclusive)
    val slicedList = charList.subList(startIndex, endIndex)

    return slicedList
}
/**
 * Given a string, create a tuple using each character in the string.
 * Then, slice the tuple from the start index to the end index (exclusive),
 * and return the sliced tuple.
 *
 * @param string The input string to create the tuple from.
 * @param startIndex The starting index of the slice.
 * @param endIndex The ending index of the slice (exclusive).
 * @return The sliced tuple.
 *
 * Example:
 * createTupleFromStringAndSlice("Hello World", 3, 8) -> ('l', 'o', ' ', 'W')
 */
fun createTupleFromStringAndSlice(string: String, startIndex: Int, endIndex: Int): List<Char> {
/**
 * Given a string, create a tuple using each character in the string.
 * Then, slice the tuple from the start index to the end index (exclusive),
 * and return the sliced tuple.
 *
 * @param string The input string to create the tuple from.
 * @param startIndex The starting index of the slice.
 * @param endIndex The ending index of the slice (exclusive).
 * @return The sliced tuple.
 *
 * Example:
 * createTupleFromStringAndSlice("Hello World", 3, 8) -> ('l', 'o', ' ', 'W')
 */
fun createTupleFromStringAndSlice(string: String, startIndex: Int, endIndex: Int): List<Char> {

    // Create a list of characters from the string
    val charList = string.toList()

    // Slice the list from startIndex to endIndex (exclusive)
    val slicedList = charList.subList(startIndex, endIndex)

    return slicedList
}