Solution to Rosalind problems