Solved problem 'subs' on Rosalind