Java program to count number of distinct pairs possible from the two arrays such that element selected from one array is always greater than the one selected from the other array
import java . util . * ; class GFG {