Pregunta de entrevista de Goldman Sachs

Questions based on stack and DP.