Pergunta de entrevista da empresa Goldman Sachs

they asked some leetcode questions on hackerrank