Question d’entretien chez CDW

Code to calculate next greater element in circular array