Amazon Interview Question

intervals and monotonic stacks .....