/**
 * Given a list of dancers and a specified dancer name, return true if the dancer can move and false otherwise.
 *
 * @param dancers A list of dancers.
 * @param dancerName The name of the dancer to check.
 * @return true if the dancer can move, false otherwise.
 */
fun dancerCanMove(dancers: List<String>, dancerName: String): Boolean {

    try {
        for (dancer in dancers) {
            try {
                if (dancer == dancerName) {
                    return true
                }
            } catch (e: Exception) {
                continue
            }
        }
    } catch (e: Exception) {
        return false
    }

    return false
}
/**
 * Given a list of dancers and a specified dancer name, return true if the dancer can move and false otherwise.
 *
 * @param dancers A list of dancers.
 * @param dancerName The name of the dancer to check.
 * @return true if the dancer can move, false otherwise.
 */
fun dancerCanMove(dancers: List<String>, dancerName: String): Boolean {
/**
 * Given a list of dancers and a specified dancer name, return true if the dancer can move and false otherwise.
 *
 * @param dancers A list of dancers.
 * @param dancerName The name of the dancer to check.
 * @return true if the dancer can move, false otherwise.
 */
fun dancerCanMove(dancers: List<String>, dancerName: String): Boolean {

    try {
        for (dancer in dancers) {
            try {
                if (dancer == dancerName) {
                    return true
                }
            } catch (e: Exception) {
                continue
            }
        }
    } catch (e: Exception) {
        return false
    }

    return false
}