/**
 * The function takes in two lists: currentRooms (a list of rooms that an architect is currently working on)
 * and newRooms (a list of rooms newly assigned to the architect).
 * The function should add the newRooms to the currentRooms list and return the merged list.
 *
 * @param currentRooms The list of rooms currently being worked on.
 * @param newRooms The list of rooms newly assigned to the architect.
 * @return The merged list of rooms after adding the newRooms.
 *
 * Example:
 * 1. joinRooms(listOf("Kitchen", "Bathroom"), listOf("Bedroom", "Living Room", "Study"))
 *    Output: ["Kitchen", "Bathroom", "Bedroom", "Living Room", "Study"]
 *
 * 2. joinRooms(emptyList(), listOf("Gym", "Outdoor Space"))
 *    Output: ["Gym", "Outdoor Space"]
 *
 * 3. joinRooms(listOf("Conference Room"), emptyList())
 *    Output: ["Conference Room"]
 */
fun joinRooms(currentRooms: MutableList<String>, newRooms: List<String>): List<String> {

    // Append the elements of newRooms to currentRooms
    currentRooms.addAll(newRooms)
    return currentRooms
}
/**
 * The function takes in two lists: currentRooms (a list of rooms that an architect is currently working on)
 * and newRooms (a list of rooms newly assigned to the architect).
 * The function should add the newRooms to the currentRooms list and return the merged list.
 *
 * @param currentRooms The list of rooms currently being worked on.
 * @param newRooms The list of rooms newly assigned to the architect.
 * @return The merged list of rooms after adding the newRooms.
 *
 * Example:
 * 1. joinRooms(listOf("Kitchen", "Bathroom"), listOf("Bedroom", "Living Room", "Study"))
 *    Output: ["Kitchen", "Bathroom", "Bedroom", "Living Room", "Study"]
 *
 * 2. joinRooms(emptyList(), listOf("Gym", "Outdoor Space"))
 *    Output: ["Gym", "Outdoor Space"]
 *
 * 3. joinRooms(listOf("Conference Room"), emptyList())
 *    Output: ["Conference Room"]
 */
fun joinRooms(currentRooms: MutableList<String>, newRooms: List<String>): List<String> {
/**
 * The function takes in two lists: currentRooms (a list of rooms that an architect is currently working on)
 * and newRooms (a list of rooms newly assigned to the architect).
 * The function should add the newRooms to the currentRooms list and return the merged list.
 *
 * @param currentRooms The list of rooms currently being worked on.
 * @param newRooms The list of rooms newly assigned to the architect.
 * @return The merged list of rooms after adding the newRooms.
 *
 * Example:
 * 1. joinRooms(listOf("Kitchen", "Bathroom"), listOf("Bedroom", "Living Room", "Study"))
 *    Output: ["Kitchen", "Bathroom", "Bedroom", "Living Room", "Study"]
 *
 * 2. joinRooms(emptyList(), listOf("Gym", "Outdoor Space"))
 *    Output: ["Gym", "Outdoor Space"]
 *
 * 3. joinRooms(listOf("Conference Room"), emptyList())
 *    Output: ["Conference Room"]
 */
fun joinRooms(currentRooms: MutableList<String>, newRooms: List<String>): List<String> {

    // Append the elements of newRooms to currentRooms
    currentRooms.addAll(newRooms)
    return currentRooms
}