Java implementation to count the number of unordered triplets such that the numbers are in increasing order and the product of them is less than or equal to integer X
import java . util . * ; class GFG {