FastCode AI Interview Question

Next greater element stack question