Pergunta de entrevista da empresa Goldman Sachs

Easy qns for first round, medium for second