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

    nucleotides = ['?','A','C','G','T']
    if 1 <= nucleotide_index and nucleotide_index <= 4:
        return nucleotides[nucleotide_index]
    return '?'