Bob Horn made a point here, when a wall can exist independently of a room, it should be aggregation.
But remember that you are modeling how you want to see / manipulate them, so you can also decide that you mainly take care of your rooms and see the walls as a side effect of the room, and then this is composition.
Aggregation Model
You are building a wall that defines your rooms, your room is just the space between the walls.
Thinking in this way, there is no need to have 4 walls in the room, it's just an arbitrary set of walls: an open room can have 3 walls, and a closed room of L shapes can have 6.
This is a view that an architect or builder will accept.
Composition model
You want to see the room as a space with walls, what you really need is a view of the wall from the inside of the room. In this case, you do not transport the car, if there is a common wall in the other room, when you destroy your room, the inside of the wall disappears along with it.
A common wall becomes a combination of two wall rooms.
This may be the right idea if you are planning an exhibition and want to determine where the paintings will be displayed.
The model that best suits your needs
In the end, you model the view and, therefore, simplify it. Similarly, there is no right or better answer when modeling your presentation; you must model your presentation after your needs.
If you want to buy a car, you usually define a book consisting of its pages, at its disposal you have all the pages. If you want to print a book, you usually deal with spare parts, which, like a collection of folios consisting of pages, if the folio is sealed, you can take another copy for assembly in the final book.