Goldman Sachs Interview Question

A few Big O complexity questions