Question d’entretien chez SAP

Find the largest number in a stack with time complexity O(1)