Google Interview Question

Go through the graph using typescript.