Infosys interview question

they askerd an hard level graph problem