def nucleotide_index(nucleotide):
    """
        Convert nucleotide character to a number.
    """

    if nucleotide == 'C':
         return 2
    if nucleotide == 'G':
         return 3
    if nucleotide == 'A':
         return 1
    if nucleotide == 'T':
         return 4
    return 0