/**
 * Check the musician's information and perform appropriate actions based on conditions.
 *
 * @param musicianInfo A tuple containing the musician's information.
 * @return A message explaining the actions performed based on the conditions.
 */
fun checkMusicianInfo(musicianInfo: Triple<String, Int, String>): String {

    val (name, age, genre) = musicianInfo
    val instrument = musicianInfo.third

    return when {
        name.isEmpty() -> "Please provide a valid musician name."
        age < 0 -> "Age cannot be negative."
        genre.isEmpty() || instrument.isEmpty() -> "Please provide the necessary information."
        else -> "Information is valid."
    }
}
/**
 * Check the musician's information and perform appropriate actions based on conditions.
 *
 * @param musicianInfo A tuple containing the musician's information.
 * @return A message explaining the actions performed based on the conditions.
 */
fun checkMusicianInfo(musicianInfo: Triple<String, Int, String>): String {
/**
 * Check the musician's information and perform appropriate actions based on conditions.
 *
 * @param musicianInfo A tuple containing the musician's information.
 * @return A message explaining the actions performed based on the conditions.
 */
fun checkMusicianInfo(musicianInfo: Triple<String, Int, String>): String {

    val (name, age, genre) = musicianInfo
    val instrument = musicianInfo.third

    return when {
        name.isEmpty() -> "Please provide a valid musician name."
        age < 0 -> "Age cannot be negative."
        genre.isEmpty() || instrument.isEmpty() -> "Please provide the necessary information."
        else -> "Information is valid."
    }
}