Next Greater Element Problem - Monotonic Stacks — Advanced Pattern | OneNoughtOne