/**
 * Given a musician's name, a list of days off, and a list of gigs,
 * generate the musician's schedule for the upcoming month.
 *
 * @param musicianName The name of the musician.
 * @param daysOff A list containing the days the musician is off.
 * @param gigs A list containing the gigs the musician has scheduled.
 * @return A list containing the musician's schedule for the upcoming month.
 */
fun generateMusicianSchedule(musicianName: String, daysOff: List<Int>, gigs: List<Int>): List<String> {

    val schedule = mutableListOf<String>()
    val daysInMonth = 1..30

    for (day in daysInMonth) {
        when {
            day in daysOff -> schedule.add("$musicianName has a day off on $day th.")
            day in gigs -> schedule.add("$musicianName has a gig on $day th.")
            else -> schedule.add("$musicianName has no plans on $day th.")
        }
    }

    return schedule
}
/**
 * Given a musician's name, a list of days off, and a list of gigs,
 * generate the musician's schedule for the upcoming month.
 *
 * @param musicianName The name of the musician.
 * @param daysOff A list containing the days the musician is off.
 * @param gigs A list containing the gigs the musician has scheduled.
 * @return A list containing the musician's schedule for the upcoming month.
 */
fun generateMusicianSchedule(musicianName: String, daysOff: List<Int>, gigs: List<Int>): List<String> {
/**
 * Given a musician's name, a list of days off, and a list of gigs,
 * generate the musician's schedule for the upcoming month.
 *
 * @param musicianName The name of the musician.
 * @param daysOff A list containing the days the musician is off.
 * @param gigs A list containing the gigs the musician has scheduled.
 * @return A list containing the musician's schedule for the upcoming month.
 */
fun generateMusicianSchedule(musicianName: String, daysOff: List<Int>, gigs: List<Int>): List<String> {

    val schedule = mutableListOf<String>()
    val daysInMonth = 1..30

    for (day in daysInMonth) {
        when {
            day in daysOff -> schedule.add("$musicianName has a day off on $day th.")
            day in gigs -> schedule.add("$musicianName has a gig on $day th.")
            else -> schedule.add("$musicianName has no plans on $day th.")
        }
    }

    return schedule
}