Exposing an internal list allows external modification, breaking encapsulation.
When a method returns an internal list directly, it can be modified by any class that receives it, potentially leading to unintended side effects. Instead, return a copy or an unmodifiable view. For example, a `Cart` class should return a copy of its `items` list to prevent external classes from adding or removing items directly.
Additional Notes
Why can exposing an object’s internal list become a real problem?