ION Group interview question

Two Coding questions- 1 Graph, 1 Array