Making choices dna or rna (solution)

Exercise
Output solution

’ Determines if a character string represents DNA, RNA, or is unknown ’ by searching the character string for the unique base pairs t & u.

[1] "DNA"
[1] "RNA"
[1] "UNKNOWN"