Question d’entretien chez Viber

implement stack with O(1) for finding the max element