/**
 * This function takes a list of photographers and their details, and returns a specified portion of
 * details for a given photographer.
 *
 * @param photographers A list containing details of photographers.
 * @param index The index of the photographer whose details are to be retrieved.
 * @param start The starting index of the desired portion of details.
 * @param end The ending index (exclusive) of the desired portion of details.
 * @return A portion of details for a given photographer.
 */
fun getPhotographerDetails(photographers: List<List<String>>, index: Int, start: Int, end: Int): List<String> {

    val photographer = photographers[index]  // Retrieve the photographer at the given index

    // Slice the details of the photographer based on the specified start and end indices
    val portionOfDetails = photographer.subList(start, end)

    return portionOfDetails
}
/**
 * This function takes a list of photographers and their details, and returns a specified portion of
 * details for a given photographer.
 *
 * @param photographers A list containing details of photographers.
 * @param index The index of the photographer whose details are to be retrieved.
 * @param start The starting index of the desired portion of details.
 * @param end The ending index (exclusive) of the desired portion of details.
 * @return A portion of details for a given photographer.
 */
fun getPhotographerDetails(photographers: List<List<String>>, index: Int, start: Int, end: Int): List<String> {
/**
 * This function takes a list of photographers and their details, and returns a specified portion of
 * details for a given photographer.
 *
 * @param photographers A list containing details of photographers.
 * @param index The index of the photographer whose details are to be retrieved.
 * @param start The starting index of the desired portion of details.
 * @param end The ending index (exclusive) of the desired portion of details.
 * @return A portion of details for a given photographer.
 */
fun getPhotographerDetails(photographers: List<List<String>>, index: Int, start: Int, end: Int): List<String> {

    val photographer = photographers[index]  // Retrieve the photographer at the given index

    // Slice the details of the photographer based on the specified start and end indices
    val portionOfDetails = photographer.subList(start, end)

    return portionOfDetails
}