Google Interview Question

Technical question about data structure and codings