/**
 * This exercise requires finding the common moves between two dancers.
 *
 * @param dancerMoves1 A list of moves performed by dancer 1
 * @param dancerMoves2 A list of moves performed by dancer 2
 * @return A list of moves that are common to both dancers
 *
 * Note:
 * - A move is represented as a string
 * - The returned list should only contain distinct common moves, i.e., no duplicates
 * - The order of the moves in the returned list is not important
 * - If there are no common moves, an empty list should be returned
 */
fun findCommonMoves(dancerMoves1: List<String>, dancerMoves2: List<String>): List<String> {

    // Perform some complex slicing and comparison logic here to find the common moves

    // Step 1: Filter dancerMoves1 to keep only moves present in dancerMoves2
    val commonMoves = dancerMoves1.filter { it in dancerMoves2 }

    // Step 2: Remove duplicates from commonMoves
    val distinctCommonMoves = commonMoves.toSet().toList()

    // Step 3: Return the final list of common moves
    return distinctCommonMoves
}
/**
 * This exercise requires finding the common moves between two dancers.
 *
 * @param dancerMoves1 A list of moves performed by dancer 1
 * @param dancerMoves2 A list of moves performed by dancer 2
 * @return A list of moves that are common to both dancers
 *
 * Note:
 * - A move is represented as a string
 * - The returned list should only contain distinct common moves, i.e., no duplicates
 * - The order of the moves in the returned list is not important
 * - If there are no common moves, an empty list should be returned
 */
fun findCommonMoves(dancerMoves1: List<String>, dancerMoves2: List<String>): List<String> {
/**
 * This exercise requires finding the common moves between two dancers.
 *
 * @param dancerMoves1 A list of moves performed by dancer 1
 * @param dancerMoves2 A list of moves performed by dancer 2
 * @return A list of moves that are common to both dancers
 *
 * Note:
 * - A move is represented as a string
 * - The returned list should only contain distinct common moves, i.e., no duplicates
 * - The order of the moves in the returned list is not important
 * - If there are no common moves, an empty list should be returned
 */
fun findCommonMoves(dancerMoves1: List<String>, dancerMoves2: List<String>): List<String> {

    // Perform some complex slicing and comparison logic here to find the common moves

    // Step 1: Filter dancerMoves1 to keep only moves present in dancerMoves2
    val commonMoves = dancerMoves1.filter { it in dancerMoves2 }

    // Step 2: Remove duplicates from commonMoves
    val distinctCommonMoves = commonMoves.toSet().toList()

    // Step 3: Return the final list of common moves
    return distinctCommonMoves
}