https://mixrolikus.cc/video/zojtp83nsNI/next-greater-element-i-leetcode-496-python