Google Interview Question

I don't remember anything difficult or unexpected