[Ruby] First attempt to solve dna problem