/**
 * Given a list of songs and genres, find the songs that are not performed by the given musician and do not belong to the specified genres.
 *
 * @param musician The name of the musician.
 * @param songs A list of strings representing the names of songs.
 * @param genres A list of strings representing the genres of songs.
 * @return A list of songs that are not performed by the musician and do not belong to the specified genres.
 *
 * Example:
 * findSongs("John", listOf("Song 1", "Song 2", "Song 3"), listOf("Pop", "Rock")) // Output: ['Song 2', 'Song 3']
 * findSongs("Maria", listOf("Song A", "Song B", "Song C"), listOf("Pop", "Jazz")) // Output: ['Song B', 'Song C']
 */
fun findSongs(musician: String, songs: List<String>, genres: List<String>): List<String> {

    return songs.filter { song -> song != musician && song !in genres }
}
/**
 * Given a list of songs and genres, find the songs that are not performed by the given musician and do not belong to the specified genres.
 *
 * @param musician The name of the musician.
 * @param songs A list of strings representing the names of songs.
 * @param genres A list of strings representing the genres of songs.
 * @return A list of songs that are not performed by the musician and do not belong to the specified genres.
 *
 * Example:
 * findSongs("John", listOf("Song 1", "Song 2", "Song 3"), listOf("Pop", "Rock")) // Output: ['Song 2', 'Song 3']
 * findSongs("Maria", listOf("Song A", "Song B", "Song C"), listOf("Pop", "Jazz")) // Output: ['Song B', 'Song C']
 */
fun findSongs(musician: String, songs: List<String>, genres: List<String>): List<String> {
/**
 * Given a list of songs and genres, find the songs that are not performed by the given musician and do not belong to the specified genres.
 *
 * @param musician The name of the musician.
 * @param songs A list of strings representing the names of songs.
 * @param genres A list of strings representing the genres of songs.
 * @return A list of songs that are not performed by the musician and do not belong to the specified genres.
 *
 * Example:
 * findSongs("John", listOf("Song 1", "Song 2", "Song 3"), listOf("Pop", "Rock")) // Output: ['Song 2', 'Song 3']
 * findSongs("Maria", listOf("Song A", "Song B", "Song C"), listOf("Pop", "Jazz")) // Output: ['Song B', 'Song C']
 */
fun findSongs(musician: String, songs: List<String>, genres: List<String>): List<String> {

    return songs.filter { song -> song != musician && song !in genres }
}