Google Interview Question

Solving a problem using data structures