Solution for Rosalind (rosalind.info) problems