/**
 * This function takes a list of elements and two indices as input, and returns a sublist.
 *
 * @param chefList A list of elements
 * @param startIndex Starting index of the sublist (inclusive)
 * @param endIndex Ending index of the sublist (exclusive)
 * @return Sublist based on the given indices
 */
fun getSublist(chefList: List<Any>, startIndex: Int, endIndex: Int): List<Any> {

    val sublist = chefList.subList(startIndex, endIndex)
    return sublist
}
/**
 * This function takes a list of elements and two indices as input, and returns a sublist.
 *
 * @param chefList A list of elements
 * @param startIndex Starting index of the sublist (inclusive)
 * @param endIndex Ending index of the sublist (exclusive)
 * @return Sublist based on the given indices
 */
fun getSublist(chefList: List<Any>, startIndex: Int, endIndex: Int): List<Any> {
/**
 * This function takes a list of elements and two indices as input, and returns a sublist.
 *
 * @param chefList A list of elements
 * @param startIndex Starting index of the sublist (inclusive)
 * @param endIndex Ending index of the sublist (exclusive)
 * @return Sublist based on the given indices
 */
fun getSublist(chefList: List<Any>, startIndex: Int, endIndex: Int): List<Any> {

    val sublist = chefList.subList(startIndex, endIndex)
    return sublist
}