Google Interview Question

Nothing difficult.