/**
 * This function takes a list of dance moves and a list of dance steps.
 * It returns the intersection of dance moves and dance steps.
 *
 * @param danceList A list of dance moves.
 * @param danceSteps A list of dance steps.
 * @return The intersection of dance moves and dance steps.
 */
fun dancerMoves(danceList: List<String>, danceSteps: List<String>): List<String> {

    // Initialize an empty list to store the intersection
    val intersection = mutableListOf<String>()

    // Iterate over each dance move in the danceList
    for (move in danceList) {
        // Iterate over each dance step in the danceSteps
        for (step in danceSteps) {
            // Check if the dance move and dance step are the same
            if (move == step) {
                // Append the dance move to the intersection list
                intersection.add(move)
            }
        }
    }

    // Return the intersection list
    return intersection
}
/**
 * This function takes a list of dance moves and a list of dance steps.
 * It returns the intersection of dance moves and dance steps.
 *
 * @param danceList A list of dance moves.
 * @param danceSteps A list of dance steps.
 * @return The intersection of dance moves and dance steps.
 */
fun dancerMoves(danceList: List<String>, danceSteps: List<String>): List<String> {
/**
 * This function takes a list of dance moves and a list of dance steps.
 * It returns the intersection of dance moves and dance steps.
 *
 * @param danceList A list of dance moves.
 * @param danceSteps A list of dance steps.
 * @return The intersection of dance moves and dance steps.
 */
fun dancerMoves(danceList: List<String>, danceSteps: List<String>): List<String> {

    // Initialize an empty list to store the intersection
    val intersection = mutableListOf<String>()

    // Iterate over each dance move in the danceList
    for (move in danceList) {
        // Iterate over each dance step in the danceSteps
        for (step in danceSteps) {
            // Check if the dance move and dance step are the same
            if (move == step) {
                // Append the dance move to the intersection list
                intersection.add(move)
            }
        }
    }

    // Return the intersection list
    return intersection
}