Rippling Interview Question

technical: a question about graph