eBay Interview Question

questions related to matrices, graphs.