Python3 solution using Doubly LinkedList
\nclass BrowserHistory:\n\n    def __init__(self, homepage: str):\n        self.head = Node(homepage)\n        self.current = self.head\n\n    def visit(self, u
```\nclass BrowserHistory:\n\n    def __init__(self, homepage: str):\n        self.head = Node(homepage)\n        self.current = self.head\n\n    def visit(self, url: str) -> None:\n        self.current.right = Node(url)\n        self.current.right.left = self.current\n        self.current = self.current.right\n\n    def back(self, steps: int) -> str:\n        while steps > 0 and self.current.left:\n            steps -= 1\n            self.current = self.current.left\n        return self.current.val\n\n    def forward(self, steps: int) -> str:\n        while steps > 0 and self.current.right:\n            steps -= 1\n            self.current = self.current.right\n        return self.current.val\n    \nclass Node:\n    def __init__(self, val, left = None, right = None):\n        self.val = val\n        self.left = left\n        self.right = right\n```\n**If you like this solution, please upvote for this**
['Linked List', 'Python3']