Morgan Stanley Interview Question

Queue, graph and array questions