Solution to 2nd Question in Rosalind Bioinformatics Stronghold