https://videosashka.com/watch/sDKpIO2HGq0/next-greater-element-in-an-array