/**
 * Given a list of actor names, return a sliced list of names between the start and end index.
 */
fun actorName(actorNameList: List<String>, startIndex: Int, endIndex: Int): List<String> {

    // Slicing the list of actor names
    val slicedNames = actorNameList.subList(startIndex, endIndex + 1)
    
    // Returning the sliced list
    return slicedNames
}
/**
 * Given a list of actor names, return a sliced list of names between the start and end index.
 */
fun actorName(actorNameList: List<String>, startIndex: Int, endIndex: Int): List<String> {
/**
 * Given a list of actor names, return a sliced list of names between the start and end index.
 */
fun actorName(actorNameList: List<String>, startIndex: Int, endIndex: Int): List<String> {

    // Slicing the list of actor names
    val slicedNames = actorNameList.subList(startIndex, endIndex + 1)
    
    // Returning the sliced list
    return slicedNames
}