def calculateHammingDistance(hash1, hash2):
    """
        Calculate Hamming distance

        Parameters
        ----------
        hash1 : array_like
                    The first hash value
        hash2 : array_like
                    The second hash value
                    
        Returns
        -------
        m : int
                    The hamming distance value
    """

    num = 0
    for index in range(len(hash1)):
        if hash1[index] != hash2[index]:
            num += 1
    return num