Goldman Sachs Interview Question

Write a code to sort a series.

Interview Answer