http://rosalind.info/problems/hamm/
Jorge's solution.