DiDi Labs Interview Question

a depth first search based coding question