/**
 * This function takes in two musicians and returns a list of songs that are common to both.
 *
 * @param musician1 A set containing the songs of musician 1
 * @param musician2 A set containing the songs of musician 2
 * @return A list of songs that are common to both musicians
 */
fun findCommonSongs(musician1: Set<String>, musician2: Set<String>): List<String> {

    // Initialize an empty list to store the common songs
    val commonSongs = mutableListOf<String>()
    
    // Loop through each song of musician 1
    for (song in musician1) {
        // Check if the song is also present in musician 2
        if (song in musician2) {
            // Add the common song to the list
            commonSongs.add(song)
        }
    }
    
    return commonSongs
}
/**
 * This function takes in two musicians and returns a list of songs that are common to both.
 *
 * @param musician1 A set containing the songs of musician 1
 * @param musician2 A set containing the songs of musician 2
 * @return A list of songs that are common to both musicians
 */
fun findCommonSongs(musician1: Set<String>, musician2: Set<String>): List<String> {
/**
 * This function takes in two musicians and returns a list of songs that are common to both.
 *
 * @param musician1 A set containing the songs of musician 1
 * @param musician2 A set containing the songs of musician 2
 * @return A list of songs that are common to both musicians
 */
fun findCommonSongs(musician1: Set<String>, musician2: Set<String>): List<String> {

    // Initialize an empty list to store the common songs
    val commonSongs = mutableListOf<String>()
    
    // Loop through each song of musician 1
    for (song in musician1) {
        // Check if the song is also present in musician 2
        if (song in musician2) {
            // Add the common song to the list
            commonSongs.add(song)
        }
    }
    
    return commonSongs
}