Utility function to find the maximum scalar product from the equal length sub - sequences taken from the two given array
int maxProductUtil ( int X , int Y , int * A , int * B , vector < vector < int > > & dp ) {