http://rosalind.info/problems/mend/