Rippling interview question

technical: a question about graph