Problem "Semi-Connected Graph" solved

http://rosalind.info/problems/sc/