Pergunta de entrevista da empresa Blueground

Make a stack (in whatever language), find the max of the stack in O(1) time