Google Interview Question

algorithmic complexity