OOCL Interview Question

How would I solve a given problem