Suppose an array originally contains N elements. Now GCD of all the subsets is taken and another array of size 2N - 1 is generated. Now given the array having GCD