Yahoo Interview Question

Same old computer science fundamentals.