Pergunta de entrevista da empresa Google

reverse a stack, keep track of minimum value in stack