/**
 * This function determines the dance move based on the given conditions.
 */
fun danceMove(musicPlaying: Boolean, isSlowSong: Boolean, hasPartner: Boolean): String {

    return when {
        musicPlaying -> {
            if (isSlowSong) {
                if (hasPartner) {
                    "waltz"
                } else {
                    "solo slow dance"
                }
            } else {
                if (hasPartner) {
                    "tango"
                } else {
                    "solo fast dance"
                }
            }
        }
        else -> "no music, no dance"
    }
}
/**
 * This function determines the dance move based on the given conditions.
 */
fun danceMove(musicPlaying: Boolean, isSlowSong: Boolean, hasPartner: Boolean): String {
/**
 * This function determines the dance move based on the given conditions.
 */
fun danceMove(musicPlaying: Boolean, isSlowSong: Boolean, hasPartner: Boolean): String {

    return when {
        musicPlaying -> {
            if (isSlowSong) {
                if (hasPartner) {
                    "waltz"
                } else {
                    "solo slow dance"
                }
            } else {
                if (hasPartner) {
                    "tango"
                } else {
                    "solo fast dance"
                }
            }
        }
        else -> "no music, no dance"
    }
}