Python Time Monotonic Stack Problems Gfg