Coding Challenge · INTERMEDIATE
A digital drawing app lets users perform actions like drawing lines, erasing, or changing colors. To support undo functionality, you need to design a structure that allows users to undo their most recent action and also retrieve the current minimum action ID (the smallest action number performed so far) at any time. Im…