Pergunta de entrevista da empresa Goldman Sachs

Can’t disclose, but difficulty is comparable with “easy” on hackerrank