Craftable interview question

Do a graph traversal mapping.