Coding Challenge · BEGINNER
You are building a simple drawing application where users can perform actions like drawing lines or erasing. The app supports an undo feature that reverts the most recent action. Your task is to implement a class that supports adding actions and undoing them, always returning the current number of actions after each op…