Yahoo Interview Question

Data structure and algorithm CS