Craftable Interview Question

Do a graph traversal mapping.