/**
 * The function takes in a musician's name, a tuple of music genres, and a dictionary mapping genres to number of albums.
 * It returns the genre(s) in which the musician has released at least two albums.
 *
 * @param musician Name of the musician.
 * @param genreTuple Tuple of music genres.
 * @param genreDict Dictionary mapping genres to number of albums.
 * @return List of genres in which the musician has released at least two albums.
 */
fun getMusicGenre(musician: String, genreTuple: List<String>, genreDict: Map<String, Int>): List<String> {

    val matchingGenres = mutableListOf<String>()

    for (genre in genreTuple) {
        if (genre in genreDict && genreDict[genre]!! >= 2) {
            matchingGenres.add(genre)
        }
    }

    return matchingGenres
}
/**
 * The function takes in a musician's name, a tuple of music genres, and a dictionary mapping genres to number of albums.
 * It returns the genre(s) in which the musician has released at least two albums.
 *
 * @param musician Name of the musician.
 * @param genreTuple Tuple of music genres.
 * @param genreDict Dictionary mapping genres to number of albums.
 * @return List of genres in which the musician has released at least two albums.
 */
fun getMusicGenre(musician: String, genreTuple: List<String>, genreDict: Map<String, Int>): List<String> {
/**
 * The function takes in a musician's name, a tuple of music genres, and a dictionary mapping genres to number of albums.
 * It returns the genre(s) in which the musician has released at least two albums.
 *
 * @param musician Name of the musician.
 * @param genreTuple Tuple of music genres.
 * @param genreDict Dictionary mapping genres to number of albums.
 * @return List of genres in which the musician has released at least two albums.
 */
fun getMusicGenre(musician: String, genreTuple: List<String>, genreDict: Map<String, Int>): List<String> {

    val matchingGenres = mutableListOf<String>()

    for (genre in genreTuple) {
        if (genre in genreDict && genreDict[genre]!! >= 2) {
            matchingGenres.add(genre)
        }
    }

    return matchingGenres
}