Graph Valid Tree Solution

join shbcf.ru