Panasonic Interview Question

questions related to graph theory