Pergunta de entrevista da empresa Goldman Sachs

Questions based on stack and 2 pointer