Solutions to first two Rosalind problems