Utility function to find the maximum scalar product from the equal length sub - sequences taken from the two given array
static int maxProductUtil ( int X , int Y , int [ ] A , int [ ] B , int [ , ] dp ) {