In molecular biology, it is often necessary to find the reverse complement of a DNA sequence. The reverse complement of a DNA string is formed by reversing the string and then taking the complement of each nucleotide. The complement rules are: 'A' is replaced with 'T', 'T' is replaced with 'A', 'C' is replaced with 'G', and 'G' is replaced with 'C'.
For example, the reverse complement of the DNA string "AGCT" would be "AGCT" -> "TCGA" -> "AGCT". The reverse complement is essential in various DNA analysis techniques, including DNA sequencing and molecular cloning.
Your task is to write a code that computes the reverse complement of a given DNA string. After computing the result, run your code with the provided input, and then paste your results here to submit. Ensure that the result is in uppercase and without any spaces.
Sample Input:
AAAACCCGGT
Sample Output:
ACCGGGTTTT
Constraints:
The DNA string will contain at most 1,000 nucleotides.
Explanation:
The DNA string "AAAACCCGGT" has the following reverse complement:
- Original string: AAAACCCGGT
- Reversed string: TGGCCCAAAA
- Complemented string: ACCGGGTTTT