2017-7: Counting DNA Nucleotides

Write code that takes a character vector representing a DNA string and returns 4 integers of the number of occurrences for each of the symbols 'A', 'C', 'G', and 'T' respectively.

Examples

Implementation

You can also run the tests via ⌘/shift + enter