Amazon interview question

NDA signed but basic data structure on graph