Topic: Stack Problem / Level: intermediate

Problem: Implement a function to simulate a browsers history navigation with multiple forward and backward operations using stacks.

Run the code to see the output here...