/**
 * This function takes two songs as input and returns a string containing the common notes between them.
 */
fun getCommonNotes(song1: String, song2: String): String {

    // Slicing the songs to keep only the first 10 characters
    val song1 = song1.take(10)
    val song2 = song2.take(10)

    // Converting the songs to sets of characters
    val set1 = song1.toSet()
    val set2 = song2.toSet()

    // Getting the common notes between the two songs using set intersection
    val commonNotes = (set1 intersect set2).sorted()

    // Filtering out the notes that are less than 'C'
    val filteredNotes = commonNotes.filter { it < 'C' }

    // Joining the filtered notes into a single string
    val result = filteredNotes.joinToString("")

    return result
}
/**
 * This function takes two songs as input and returns a string containing the common notes between them.
 */
fun getCommonNotes(song1: String, song2: String): String {
/**
 * This function takes two songs as input and returns a string containing the common notes between them.
 */
fun getCommonNotes(song1: String, song2: String): String {

    // Slicing the songs to keep only the first 10 characters
    val song1 = song1.take(10)
    val song2 = song2.take(10)

    // Converting the songs to sets of characters
    val set1 = song1.toSet()
    val set2 = song2.toSet()

    // Getting the common notes between the two songs using set intersection
    val commonNotes = (set1 intersect set2).sorted()

    // Filtering out the notes that are less than 'C'
    val filteredNotes = commonNotes.filter { it < 'C' }

    // Joining the filtered notes into a single string
    val result = filteredNotes.joinToString("")

    return result
}