UBS Interview Question

Star Sum- Graph problem . This question was not clear to me.