bestCombination function

Partition of a number into two factors