LLD - Design — Chess Game
Given this code snippet, what will be the output when the Subject's state changes?
Assuming observers print the new state on update.
subject.addObserver(observer1); subject.addObserver(observer2); subject.setState(10);
Assuming observers print the new state on update.
