Blu Smart Interview Question

It was a array based question and a graph based easy question.