Question d’entretien chez Goldman Sachs

Coding and maths related qn on hackerrank