https://alicloud.my.id/2024/06/25/algorithms-depth-first-search-using-stacks-in-javascript/
Algorithms: Depth First Search using Stacks in JavaScript