Build a counter application with undo and redo functionality that tracks operation history and allows users to navigate through past states.
Asked in frontend interviews at Amazon and Google