/**
 * Given a string, create a tuple using the tuple() function by performing string slicing.
 *
 * @param string A string to be sliced
 * @param startIndex An integer representing the starting index of the slice (inclusive)
 * @param endIndex An integer representing the ending index of the slice (exclusive)
 * @return A tuple containing the sliced characters of the string
 *
 * Instructions:
 * - Use string slicing to extract a portion of the given string.
 * - Use the tuple() function to create a tuple from the sliced characters.
 *
 * Example:
 * createTupleStringSlice("Hello, World!", 2, 9)
 * Output: ('l', 'l', 'o', ',', ' ', 'W', 'o')
 */
fun createTupleStringSlice(string: String, startIndex: Int, endIndex: Int): List<Char> {

    val slicedString = string.substring(startIndex, endIndex)
    return slicedString.toList()
}
/**
 * Given a string, create a tuple using the tuple() function by performing string slicing.
 *
 * @param string A string to be sliced
 * @param startIndex An integer representing the starting index of the slice (inclusive)
 * @param endIndex An integer representing the ending index of the slice (exclusive)
 * @return A tuple containing the sliced characters of the string
 *
 * Instructions:
 * - Use string slicing to extract a portion of the given string.
 * - Use the tuple() function to create a tuple from the sliced characters.
 *
 * Example:
 * createTupleStringSlice("Hello, World!", 2, 9)
 * Output: ('l', 'l', 'o', ',', ' ', 'W', 'o')
 */
fun createTupleStringSlice(string: String, startIndex: Int, endIndex: Int): List<Char> {
/**
 * Given a string, create a tuple using the tuple() function by performing string slicing.
 *
 * @param string A string to be sliced
 * @param startIndex An integer representing the starting index of the slice (inclusive)
 * @param endIndex An integer representing the ending index of the slice (exclusive)
 * @return A tuple containing the sliced characters of the string
 *
 * Instructions:
 * - Use string slicing to extract a portion of the given string.
 * - Use the tuple() function to create a tuple from the sliced characters.
 *
 * Example:
 * createTupleStringSlice("Hello, World!", 2, 9)
 * Output: ('l', 'l', 'o', ',', ' ', 'W', 'o')
 */
fun createTupleStringSlice(string: String, startIndex: Int, endIndex: Int): List<Char> {

    val slicedString = string.substring(startIndex, endIndex)
    return slicedString.toList()
}