Google Interview Question

Different algorithms and data structures. Using a specific language was not required.