Dropbox Interview Question

Nothing too difficult, study algorithm and graphs well