Texas Instruments interview question

About graphs, min heaps and basic c++ questions