Pergunta de entrevista da empresa Goldman Sachs

They have asked a behavioral question in the second round where i was asked to code in coderpad.