Stanza Living Interview Question

Graph data structure problem for snacks and ladders