Function to count the number of contiguous subsequences whose product can be expressed as square of difference of two integers
def CntcontSubs ( a , n ) : NEW_LINE INDENT c = 0 NEW_LINE d = 0 NEW_LINE sum = 1 NEW_LINE DEDENT