/**
 * You are given a nested list of dancers and their respective dance moves. Each dancer is represented by a pair
 * with their name as the first element and their dance moves as the second element. Your task is to complete the
 * function to return the dance moves of the dancer at the specified index.
 *
 * @param dancers A nested list of dancers and their respective dance moves.
 * @param index The index of the dancer whose dance moves are to be retrieved.
 * @return The dance moves of the dancer at the specified index.
 *
 * Example:
 * danceMoves(listOf(Pair("Anna", Pair("step", "twist")), Pair("Bob", Pair("hop", "turn")), Pair("Cindy", Pair("jump", "spin"))), 1)
 * Output: Pair("hop", "turn")
 */
fun danceMoves(dancers: List<Pair<String, Pair<String, String>>>, index: Int): Pair<String, String> {

    // Extract the dance moves of the dancer at the specified index
    val dancerMoves = dancers[index].second
    return dancerMoves
}
/**
 * You are given a nested list of dancers and their respective dance moves. Each dancer is represented by a pair
 * with their name as the first element and their dance moves as the second element. Your task is to complete the
 * function to return the dance moves of the dancer at the specified index.
 *
 * @param dancers A nested list of dancers and their respective dance moves.
 * @param index The index of the dancer whose dance moves are to be retrieved.
 * @return The dance moves of the dancer at the specified index.
 *
 * Example:
 * danceMoves(listOf(Pair("Anna", Pair("step", "twist")), Pair("Bob", Pair("hop", "turn")), Pair("Cindy", Pair("jump", "spin"))), 1)
 * Output: Pair("hop", "turn")
 */
fun danceMoves(dancers: List<Pair<String, Pair<String, String>>>, index: Int): Pair<String, String> {
/**
 * You are given a nested list of dancers and their respective dance moves. Each dancer is represented by a pair
 * with their name as the first element and their dance moves as the second element. Your task is to complete the
 * function to return the dance moves of the dancer at the specified index.
 *
 * @param dancers A nested list of dancers and their respective dance moves.
 * @param index The index of the dancer whose dance moves are to be retrieved.
 * @return The dance moves of the dancer at the specified index.
 *
 * Example:
 * danceMoves(listOf(Pair("Anna", Pair("step", "twist")), Pair("Bob", Pair("hop", "turn")), Pair("Cindy", Pair("jump", "spin"))), 1)
 * Output: Pair("hop", "turn")
 */
fun danceMoves(dancers: List<Pair<String, Pair<String, String>>>, index: Int): Pair<String, String> {

    // Extract the dance moves of the dancer at the specified index
    val dancerMoves = dancers[index].second
    return dancerMoves
}