Pregunta de entrevista de Goldman Sachs

they asked some leetcode questions on hackerrank