https://www.geeksforgeeks.org/next-smaller-element/