Function to count the number of contiguous subsequences whose product can be expressed as square of difference of two integers
static int CntcontSubs ( int [ ] a , int n ) { int c = 0 , d = 0 , i , sum = 1 , j ;