Siguiente elemento mayor JavaScript usando pila

next greater element in array using stack
Yawning Yacare