/**
 * Given a list of actors/actresses, return a pair containing the first and last element.
 *
 * @param actorList List of actors/actresses
 * @return Pair containing the first and last element
 *
 * Example:
 * val actorList = listOf("Tom Hardy", "Meryl Streep", "Johnny Depp", "Emma Stone")
 * getFirstAndLastElement(actorList) -> Pair("Tom Hardy", "Emma Stone")
 */
fun getFirstAndLastElement(actorList: List<String>): Pair<String, String> {

    val firstActor = actorList.first()
    val lastActor = actorList.last()

    return Pair(firstActor, lastActor)
}
/**
 * Given a list of actors/actresses, return a pair containing the first and last element.
 *
 * @param actorList List of actors/actresses
 * @return Pair containing the first and last element
 *
 * Example:
 * val actorList = listOf("Tom Hardy", "Meryl Streep", "Johnny Depp", "Emma Stone")
 * getFirstAndLastElement(actorList) -> Pair("Tom Hardy", "Emma Stone")
 */
fun getFirstAndLastElement(actorList: List<String>): Pair<String, String> {
/**
 * Given a list of actors/actresses, return a pair containing the first and last element.
 *
 * @param actorList List of actors/actresses
 * @return Pair containing the first and last element
 *
 * Example:
 * val actorList = listOf("Tom Hardy", "Meryl Streep", "Johnny Depp", "Emma Stone")
 * getFirstAndLastElement(actorList) -> Pair("Tom Hardy", "Emma Stone")
 */
fun getFirstAndLastElement(actorList: List<String>): Pair<String, String> {

    val firstActor = actorList.first()
    val lastActor = actorList.last()

    return Pair(firstActor, lastActor)
}