def profile_probability(kmer, profile_matrix):
    """
    A function to return the probability of a kmer based on a profile matrix
    Args:
        kmer: the kmer
        profile_matrix: the profile matrix
    Return:
        The probability of kmer computed w.r.t the profile matrix
    """
    matrix_row = {"A": 0, "C": 1, "G": 2, "T": 3}
    probability = 1
    for i in range(len(kmer)):
        probability = probability*profile_matrix[matrix_row[kmer[i]]][i]
    return probability