Google Interview Question

Basic algorithms and programming.