Quaternary

This is just a smarter brute force. 10 char of (A C G T) can only represent 4 ^ 10 combinations.

Covert ACGT into numbers and count them using a int[4 ^ 10].