🔴 Python Solution 🔴
Upvote if you like solution and feel free to ask If you have any question.\n\nclass LinkedList:\n    def __init__(self, url: str, prev_page=None, next_page=None
**Upvote** if you like solution and feel **free to ask** If you have any question.\n```\nclass LinkedList:\n    def __init__(self, url: str, prev_page=None, next_page=None):\n        self.page = url\n        self.prev_page = prev_page\n        self.next_page = next_page\n        \nclass BrowserHistory:\n\n    def __init__(self, homepage: str):\n        self.here = LinkedList(homepage)\n\n    def visit(self, url: str) -> None:\n        place = LinkedList(url, self.here)\n        self.here.next_page = place\n        self.here = self.here.next_page\n\n    def back(self, steps: int) -> str:\n        while steps > 0 and self.here.prev_page is not None:\n            steps -= 1\n            self.here = self.here.prev_page\n        return self.here.page\n\n    def forward(self, steps: int) -> str:\n        while steps > 0 and self.here.next_page is not None:\n            steps -= 1\n            self.here = self.here.next_page\n        return self.here.page\n```
['Linked List', 'Python']