Google Interview Question

Nothing too hard, actually...