Google Interview Question

typical leetcode challenges like ones with graph