Goldman Sachs Interview Question

Technical challenge requiring knowledge of algorithms.