Rosalind REVC solution