Google Interview Question

Some OOP algorithms.