Domanda di colloquio di Goldman Sachs

Questions based on stack and 2 pointer