Convert Graph to Binary Tree with Alternating Colors | Hello Interview