C # implementation to count all the contiguous subsequences whose product is expressed as the square of the difference of two integers
using System ; using System . Collections . Generic ; class GFG { class pair { public int first , second ; public pair ( int first , int second ) { this . first = first ; this . second = second ; } }